Answer the question
In order to leave comments, you need to log in
Do commands in a Dockerfile and commands executed in a container via 'docker exec [container_name] bash'' run in the same environment?
There is an image of Vesta niiknow/vestacp
and I want to install several packages to it via apt-get
. If packages are installed through Dockerfile
, then some errors occur in the process, if the same packages are installed in the container of this image, then everything is installed without problems. Why is this happening? I know that the commands in Dockerfile
are executed in the image, and the commands through docker exec
are already in the running container, but shouldn't the essence be the same? Those. if the image is based on niiknow/vestacp
ubuntu 16.04, then the commands run in these two ways should be run on ubuntu 16.04 and return the same results? Help me to understand
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question