CasaOS icon indicating copy to clipboard operation
CasaOS copied to clipboard

[Bug]How can I install the docker part of the container in casaos on the /mnt mounted drive instead of the /data mounted drive

Open bluehysteric opened this issue 3 years ago • 7 comments
trafficstars

casaos monta el disco duro en /DATA por defecto, se puede montar en /mnt por defecto del sistema, normalmente se puede ver el disco duro montado en /mnt en casaos, pero al instalar docker no se pueden especificar algunas carpetas en el disco duro montado en /mnt.

bluehysteric avatar Sep 02 '22 09:09 bluehysteric

From translate: asaos mounts the hard drive in /DATA by default, it can be mounted in /mnt by default of the system, normally you can see the hard disk mounted in /mnt in casaos, but when installing docker you can not specify some folders on the hard disk mounted in /mnt.

What do you mean with you cannot specify certain folders? Where are you trying to dot hat. Please provide additional information.

Hedius avatar Sep 02 '22 09:09 Hedius

From translate: asaos mounts the hard drive in /DATA by default, it can be mounted in /mnt by default of the system, normally you can see the hard disk mounted in /mnt in casaos, but when installing docker you can not specify some folders on the hard disk mounted in /mnt.

What do you mean with you cannot specify certain folders?

For example, if I install Transmission, I need to specify a folder as the download directory, and I want to specify that the system automatically mounts the drive under /mnt, but it is not shown inside the directory, and since my Raspberry Pi is mounted on top of ssd, I can't use casaos' auto-mount feature.

bluehysteric avatar Sep 02 '22 09:09 bluehysteric

Did you mount your local disk from /mnt to the docker container? As a docker volume?

Docker containers run their own isolated filesystem. During app creation you can define volumes.

Hedius avatar Sep 02 '22 09:09 Hedius

You have to map the local path into the container.

Hedius avatar Sep 02 '22 09:09 Hedius

You have to map the local path into the container.

There is no problem with casaos automounting when I am not using the system's automount. The reason is that the system will mount on /mnt and casaos will mount on /DATA, but casaos can't access mnt, do I need to map the drive to /data?

bluehysteric avatar Sep 02 '22 09:09 bluehysteric

image The drives mounted under /mnt are not visible here

bluehysteric avatar Sep 02 '22 09:09 bluehysteric

You can try entering the path directly

JohnGuan avatar Sep 22 '22 01:09 JohnGuan

@bluehysteric - since v0.3.8 new storage is mounted under /media - is this what you were looking for?

tigerinus avatar Dec 30 '22 23:12 tigerinus

In the current version of CasaOS, external USB storage devices will be mounted in the /media directory, other storage devices will be mounted in the /mnt directory, and you can already select the contents of the /media or /mnt directory in the volume when installing a custom application. You can update the latest version to see if it solves your problem.

jerrykuku avatar Aug 28 '23 10:08 jerrykuku