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
  • 15,090
  • 14
  • 68
  • 96

1 Answers1

0

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

Dmitriusan
  • 11,525
  • 3
  • 38
  • 38