Multiple Docker containers, same image, different config

前端 未结 3 1482
栀梦
栀梦 2020-12-08 02:33

I\'m totally new to Docker so I appreciate your patience.

I\'m looking for a way to deploy multiple containers with the same image, however I need to pass in a diffe

3条回答
  •  情歌与酒
    2020-12-08 03:12

    Each container runs with the same RO image but with a RW container specific filesystem layer. The result is each container can have it's own files that are distinct from every other container.

    You can pass in configuration on the CLI, as an environment variable, or as a unique volume mount. It's a very standard use case for Docker.

提交回复
热议问题