简体   繁体   中英

Docker mount socket volume

In a docker container I want to mount a volume_from an other with a Linux Socket, the question sticks on the way it works in background.

AFAIK Linux sockets are memory only but once mounted on an other container does it work as so or somehow it uses IO?

thanks.

AFAIK Linux sockets are memory only

I don't think this is true. The socket descriptor might be identified differently than a regular file. But the reading and writing should be the same as a file, so mounted volumes sharing that descriptor should work just as they do for a file. If both containers can read/write to that file descriptor then they should both be able to read/write when it is a socket descriptor as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM