Skip to content
Discussion options

You must be logged in to vote

That's not quite true. The thing with "docker run" is that it created a new container every run, with new volumes. You can see what volumes are created with "docker volume", then you can see that you old ones are there and new ones are created for the new container started with "docker run".
You can list both started and stopped containers with "docker ps" (check an pages for complete commands).
Once you have created a container you can stop and start it with "docker stop" and "docker start", that is how you use the same volumes. You can probably give arguments to docker run as well to re-use existing volumes.
You typically want to clean up/delete old volumes that are lingering as well, t…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Dominik26-1
Comment options

Answer selected by Dominik26-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants