vol Posted January 30, 2018 Share Posted January 30, 2018 Hello. I've got a question regarding docker implementation. On macOS Docker runs with virtualization (to virtualize Linux kernel). That's why, when setting up docker on mac, you need to setup virtual disk with the docker. On Linux docker runs natively and Unrad is based on Slackware. Why does we need to setup docker disk size if there is no virtualization, and docker could simply natively use any disk mounted to the unRAID, without creating virual images? Link to comment
JonathanM Posted January 30, 2018 Share Posted January 30, 2018 27 minutes ago, vol said: Hello. I've got a question regarding docker implementation. On macOS Docker runs with virtualization (to virtualize Linux kernel). That's why, when setting up docker on mac, you need to setup virtual disk with the docker. On Linux docker runs natively and Unrad is based on Slackware. Why does we need to setup docker disk size if there is no virtualization, and docker could simply natively use any disk mounted to the unRAID, without creating virual images? My speculation is that because unraid runs completely in RAM, that if you tried to do it the way you said, people would be running out of RAM left and right. Link to comment
vol Posted January 30, 2018 Author Share Posted January 30, 2018 Makes sense. Can anyone confirm that this is the reason and that docker runs natively on unraid without kernel virtualization? Link to comment
ljm42 Posted January 30, 2018 Share Posted January 30, 2018 8 hours ago, vol said: Why does we need to setup docker disk size if there is no virtualization, and docker could simply natively use any disk mounted to the unRAID, without creating virual images? Docker is running natively, not virtualized. Docker's internal files need to be stored on a BTRFS partition with COW enabled, but for the rest of the cache drive you typically want COW disabled (or XFS). The simplest/best way to handle this is to create a disk image specific to docker. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.