Home > Software engineering >  How to volume mariadb container whole file system?
How to volume mariadb container whole file system?

Time:03-31

I am running ls command inside the MariaDB container and see a bunch of directories: bin, dev, lib, lib64, tmp, etc.

Tried it, but there are only a few folders

/my/own/datadir:/var/lib/mysql

How I can volume all container home directory?

CodePudding user response:

You only have to indicate the path as you are doing, in case there are some files you can't see but they are there in the Docker container maybe it's because they are hidden. Try running ls -la.

For making a volume of the whole system, then you will have to make a volume per folder in the system. One for /etc one for /var one for /dev as you can't use / as a route for the volumes.

  • Related