Dear all,
I use docker quite a lot but this is the first time I see problem like follows:
System: Ubuntu server.
SELinux: disabled
Docker: 20.10.24, build 297e128 (installed with system)
compose.yaml:
No changes. The compose.yaml I provided here is simplified file for test purpose. In reality I need to share local dir between containers (that’s the reason for :z at the end). But no matter if it’s there or not - still it only works when dealing with dirs within my home dir. If the data is located in root file system - it doesn’t.
Please, format your post according to the following guide: How to format your forum posts
In short: please, use </> button to share codes, terminal outputs, error messages or anything that can contain special characters which would be interpreted by the MarkDown filter. Use the preview feature to make sure your text is formatted as you would expect it and check your post after you have sent it so you can still fix it.
Example code block:
```
echo "I am a code."
echo "An athletic one, and I wanna run."
```
Regarding your issue, as @meyay suspected, you installed Docker from snap which is in our opinion is a bad idea. Install it as it is described in the official documentation.
Snap runs packages in a container which is really bad for Docker. I whish I could make canonical stop publishing that snap package.