Setting a root password for a Docker image created with USER
If you have a Docker image created with a non-root user using USER in your Dockerfile, but you need to su to root to install or update something owned by root, without setting a root password you won’t be able to su to root. Instead, add a password for root in your Dockerfile (this is …
Continue reading “Setting a root password for a Docker image created with USER”