docker / for-linux

Docker Engine for Linux
https://docs.docker.com/engine/installation/
754 stars 85 forks source link

[question] how to disable `--rm` flag on a running container #283

Open bchenSyd opened 6 years ago

bchenSyd commented 6 years ago

not sure if this is a question or feature request. but I want to be able to disable the --rm flag once I started a container with docker run --rm (i basically changed my mind and want to keep it)

I know I can commit the container so that I have a new image base on it, I'm just wondering if there is a lightweight way of doing it, e.g. tag it?

cpuguy83 commented 6 years ago

There is not. I could see adding this to docker update

bchenSyd commented 6 years ago

thanks. really appreciate your prompt reply