brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: browse and upload files inside a Docker volume from Portainer

Portainer
~/tips/tip-portainer-volume-browse

cat ~/tips/tip-portainer-volume-browse.md

Lets you view, upload and download the files in a Docker volume from the Portainer web interface.

Getting a file into a Docker volume usually means a temporary container and a mount. Portainer has a file browser for it.

Go to Volumes and click browse next to the volume. You can download, rename and delete files there, and upload new ones with the icon at the top right. The docs say this makes files available to a container without using the command line.

It is handy for dropping a config file or a database seed into a volume before the first start of a container.

The caveat is in the docs: it is only available when the environment runs Docker Swarm or the Portainer Agent. A plain local Docker connection through the socket may not show it. If you do not see the browse link, the connection type is the first thing I would check.

Do not edit files of a running database this way. Stop the container first.

I would use it for small things, like a config file or a certificate that a container needs. For big transfers the command line is still faster. I would not rely on it as a file manager.

Further reading: Browse a volume, On this site: migrating a stack in Portainer does not move its volumes, On this site: use the Edge Agent when you cannot open a port to the remote machine

More Portainer tips Choose Polling in a Portainer GitOps update when your Git host can't reach Portainer Put Portainer environments in groups and give users access to a whole group Portainer's Edge Agent checks in every 5 seconds, and you can change that docker run -d -p 9001:9001 --name portainer_agent --restart=always \ Deploy the container → Replace All Portainer tips (28) All topics

Link