# Access container data without volume

**URL:** <https://forums.docker.com/t/access-container-data-without-volume/147379>\
**Category:** General\
**Tags:** docker\
**Created:** [March 27, 2025, 10:43am UTC](https://forums.docker.com/t/access-container-data-without-volume/147379 "2025-03-27T10:43:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chraebsli](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/chraebsli/32/58268_2.png) [@chraebsli](https://forums.docker.com/u/chraebsli)\
**Post date:** [March 27, 2025, 10:43am UTC](https://forums.docker.com/t/access-container-data-without-volume/147379/1 "2025-03-27T10:43:21Z")

</div>

Some time ago, I created a container with [Shlink](https://github.com/shlinkio/shlink) from the default compose file in their docs. I didn’t do any changes to that compose file, and haven’t connected a volume. This wasn’t a problem for me at first, because I just used it for testing the software, no real data stored.

Now I’ve used it for some time, since it was running smoothly and created lots of short links (stored data). But since I want to move it to another instance, I need the data, which I don’t know where it is. I tried to connect to the container doesn’t work. I checked `/var/lib/docker/volumes` and `/var/lib/docker/containers/CONTAINER` to check if there is any data.

I already checked the Shlink docs to see if there is something but haven’t found anything useful. Can anyone tell me how I could get the data of that container?  
_I posted it here because I think it is a general docker question, because the same could be asked for other software._

---

<div class="post-metadata">

**Author:** ![rimelek](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/rimelek/32/41602_2.png) [@rimelek](https://forums.docker.com/u/rimelek)\
**Post date:** [March 29, 2025, 11:00pm UTC](https://forums.docker.com/t/access-container-data-without-volume/147379/2 "2025-03-29T23:00:44Z")

</div>

Stop the container and you can use `docker cp` to copy files out of a stopped container. Where the saved files are, that should be documented in the documentation of the software or the Docker image, but `docker diff` can also tell you what changed in the contaiener compared to the original image filesystem, so you can try to recognize those you need to copy out.

---

<div class="post-metadata">

**Author:** ![chraebsli](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/chraebsli/32/58268_2.png) [@chraebsli](https://forums.docker.com/u/chraebsli)\
**Post date:** [April 13, 2025, 12:40pm UTC](https://forums.docker.com/t/access-container-data-without-volume/147379/3 "2025-04-13T12:40:38Z")

</div>

Thanks very much! I was able to find the database in `/etc/shlink/data/database.sqlite` with `docker diff` and copied it. Have a nice day!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/docker/original/3X/d/4/d4fbccd46c81bfcffe9822e20e17736d946fa821.png) [@system](https://forums.docker.com/u/system)\
**Post date:** [May 13, 2025, 12:41pm UTC](https://forums.docker.com/t/access-container-data-without-volume/147379/4 "2025-05-13T12:41:16Z")

</div>

Closed on May 13, 2025, 12:41pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
