Skip to content

How to export/extract data folder from container to use in a non-docker setup? #687

Answered by felddy
Nyankoo asked this question in Q&A
Discussion options

You must be logged in to vote

(@Nyankoo, I noticed you asked a question in a new "answer". GitHub's discussion interface can be a bit confusing, so I'm responding to your question here.)

@felddy Thank you for the quick answer!

I'm really new to Docker and when I created the container, I left the Volume Mapping empty (besides the /data), so I think it would be number 2 of what you described above, correct?

Yes, you're correct. If you didn't specify a bind mount or named volume for the /data directory when creating the container, Docker automatically created an anonymous volume.

If the container is still running, you can use the docker cp command to copy the data from the /data directory in the container to your host …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Nyankoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants