3 ms·
Dockerfiles describe how to build an image. You can build the image on any docker host and it will be identical. The differences occur only when you run the ima
by justinhj 10y ago
Dockerfiles describe how to build an image. You can build the image on any docker host and it will be identical. The differences occur only when you run the image and it becomes a container. The way networking and file systems behave can vary depending on the host and run command options.
- ben_jones 10y agoSo if I have an application that utilizes networking or the file system it will have to use separate dockerfiles depending on platform?
- justinhj 10y agoUsually you have a Dockerfile to build an image then you would deploy it to servers with different run parameters. You could also have dockerfiles that take a base image and then add some environment specific configuration IMHO it's better to keep the images identical across environments, and pass runtime configuration when deploying