Docker Engine
Installing, mounts, ports, docker.sock
Installing, mounts, ports, docker.sock
docker.io from Ubuntu and not the snap — and cap container logs right away: with no limit, json-file grows until the disk is full. The ufw firewall doesn’t close ports that Docker publishes — that’s covered here too.127.0.0.1.A missing volume path makes Docker create an empty directoryIf the host path doesn’t exist, the short volume syntax creates an empty root-owned directory in its place.A single-file mount doesn’t see your editsIf a single file is mounted into a container (./nginx.conf:/etc/nginx/nginx.conf), then after git pull, sed -i or mv the container keeps seeing the old one.docker.sock only for those that can’t do without itAccess to the Docker socket is root on the host.Who owns WordPress files in Docker: www-data and uid 33WordPress files belong to whoever runs PHP in the container: www-data, uid 33 in Debian-based images and 82 in -alpine.Entries from other topics that are about this too.