Docker Error: … is mounted on / but it is not a shared mount

Docker Jul 11, 2023

Got this error after changing machine and docker-compose up
Meaning this might be issue from different Docker version.

Trailing Slash

Found the problem is from trailing slash, so change docker-compose.yml

(-) -./sftp:/home/user-upload/
(+) -./sftp:/home/user-upload

Change from user-upload/ to user-upload make this work

Hope this help !

Tags

TeamCMD

We are CODEMONDAY team and provide a variety of content about Business , technology, and Programming. Let's enjoy it with us.