Enterprise FAQ and Tips¶
Docker and Sudo¶
If you are not running as
root, all your
commands will require
sudo in front of them.
Examine permissions to
/var/run/docker.sock. They will usually look
srw-rw---- 1 root docker 0 May 12 11:52 /var/run/docker.sock
Notice that in this example, both
root and group
docker have access
to read and write to this socket. Docker command line tools use this socket
to talk to Docker daemon, and the user that launches them, requires
to that path.
Therefore, solution to not requiring
sudo in this case would be to either
add your user to
docker group, or run a root shell and launch all your
Docker commands from that root shell.
If you’re searching for Data Directory of a Docker stack, it’s always
configured via the
DATA_ROOT variable of your
.env file of the
By default, it’s located in
on a particular stack (i.e.,
Documentation on configuring .env Files¶
Comprehensive documentation on features and parameters configured within the
.env files are located within the
.env files themselves.