3

How can existing docker container be started (in sense of docker start) with customizations of docker run like

  • --entrypoint
  • --env
  • --volume

multiple times?

I want to avoid a hack of changing docker config that requires restart of docker daemon.

A clumsy way I found is to commit current container before each run and use docker run to start it.

Community
  • 1
  • 1
czerny
  • 13,045
  • 13
  • 64
  • 86

1 Answers1

0

If you need to start the same container automatically after termination, you may take a look on --restart option

Dmitriusan
  • 10,093
  • 3
  • 33
  • 38