I’m using mac m1 pro ventura 13.1
i can’t search volume location
I saw ~/Library/Container … extra in stackoverflow,
but, i can’t apply that.
Can i access docker volume?
Share and learn in the Docker community.
I’m using mac m1 pro ventura 13.1
i can’t search volume location
I saw ~/Library/Container … extra in stackoverflow,
but, i can’t apply that.
Can i access docker volume?
Volumes are inside the virtual machine of Docker Desktop. You can’t directly read them, but you can from a container. If you want to copy the content of a volume, you can use docker copy on a running container that mounted the volume. If you just want to read the content, go to Docker Desktop dashboard » Volumes
and click on a volume. You can find the “Data” tab where you can browse the content and save files but can’t read the content. You can also use the Volumes Backup & Share
extension to export the volume.
Thx a lot. I try to that.
Further to this topic. I am a newbie trying to get on the docker wagon. Docker on macOS Sonoma m1 MacBook Pro. I want to setup a Docker Container with SQL Server with data on a separate volume so I can do development work against SQL Db backend from a Windows 11 VM on Parallels. I can probably manage to set up a Docker image and container with azure-sql-edge.
Question: How do I copy some .bak files into the a Docker data volume so I can restore Dbs from the .bak files.
Accessing and navigating between a docker volume and accessible folders on the MacBook Pro via Finder or Terminal is not intuitive at all!!!
Thanks for any pointers / tutorial around this.
You copy the files into the container that mounted the volume.
https://docs.docker.com/engine/reference/commandline/cp/
It doesn’t have to be and it is not just that it is not intuitive from Finder, but it is not possible. I have never had to open a Docker volume folder on any operating system. Those folders are for Docker and not for an interactive user. When someone needs to access that folder interactively in rare cases, that person is probably doing something unusual and has to know Docker and containers better. Especially in case of Docker Desktop which runs everything in a vitual machine.
@rimelek thanks for chiming back.
Here’s what I found - in case others stumble over this.
I used [a public available image for the azure-sql-edge] image to run the sql-edge in a container.
From Windows11 VM with SQL Management Studio installed I can then access the SQL Server in the container.
Using the restore functionality in SMS I was then able to view the internal file and folder structure of the container. The container has a separate \backups directory.
How to get .bak files into the internal \backups directory: On Docker Desktop I clicked on the vertical … to the right of the container (Show Container Actions) and clicked on “View Files”. This opens the whole internal directory structure. Right clicking on the \backups directory I can then import the .bak files from the filesystem outside of the container…
This is with the data inside the container and not in a separate data volume, but I assume the workflow would be the same.
This info is obviously for newbies like myself.
Apologies to all you other people.
No neeed to apologize. The topic is in the Docker Desktop for Mac category, but my post was a general answer. Thank you for sharing the Docker Desktop way.