Skip to content

Modify Existing Container? #752

Answered by itzg
richip asked this question in Q&A
Discussion options

You must be logged in to vote

That's a very general Docker question, but basically, no, you can't. From the commands list an "edit" command is unfortunately missing. You'll need to instead remove and recreate the container.

I recommend using docker compose to avoid that annoyance since compose will seamless take care of container recreation for you when editing the environment variables, etc.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by richip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants