![]() ![]() A server with a long-running daemon process dockerd.Docker Engine acts as a client-server application with: # echo "alias docker=\"sudo /usr/bin/docker\"" > /home/docker_user/.Docker Engine is an open source containerization technology for building and containerizing your applications. ![]() # echo "docker_user ALL=(ALL) NOPASSWD: /usr/bin/docker" > /etc/sudoers In this case we want to run the docker commands from a user called "docker_user", so we add an entry in the "/etc/sudoers" file and use an alias in the user's ".bash_profile" file so we don't have to keep typing the "sudo" command. The documentation says, "Warning: The docker group grants privileges equivalent to the root user", so we should avoid this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |