how to support docker-compose 2.1 : There is an error in the yaml syntax: YAMLSemanticError: Implicit map keys need to be on a single line
-
- resolved
- OMV 5.x
- ywgf88
-
-
Post the yml here inside a code box </>
-
Maybe itis the screenshot only, but your double quotes look strange.
Try changing them to what is on your keyboard.
-
-
Maybe itis the screenshot only, but your double quotes look strange.
Try changing them to what is on your keyboard.
----
version: "2.1"
services:
cloudnas:
image: cloudnas/clouddrive
container_name: clouddrive
volumes:
- /srv/dev-disk-by-id-scsi-1ATA_ST320LT007-9ZV142_W0Q5P5Y6-part1/omv-server/appdata/cloudnas/mnt:/CloudNAS:shared
- /srv/dev-disk-by-id-scsi-1ATA_ST320LT007-9ZV142_W0Q5P5Y6-part1/omv-server/appdata/cloudnas/config:/Config
devices:
- /dev/fuse:/dev/fuse
restart: unless-stopped
pid: "host"
privileged: true
network_mode: "host" #if network_mode doesn't work, use port mapping
-
Post the yml here inside a code box </>
----
version: "2.1"
services:
cloudnas:
image: cloudnas/clouddrive
container_name: clouddrive
volumes:
- /srv/dev-disk-by-id-scsi-1ATA_ST320LT007-9ZV142_W0Q5P5Y6-part1/omv-server/appdata/cloudnas/mnt:/CloudNAS:shared
- /srv/dev-disk-by-id-scsi-1ATA_ST320LT007-9ZV142_W0Q5P5Y6-part1/omv-server/appdata/cloudnas/config:/Config
devices:
- /dev/fuse:/dev/fuse
restart: unless-stopped
pid: "host"
privileged: true
network_mode: "host"
-
- /srv/dev-disk-by-id-scsi-1ATA_ST320LT007-9ZV142_W0Q5P5Y6-part1/omv-server/appdata/cloudnas/mnt:/CloudNAS:shared
This doesn't look right -
-
This doesn't look right
I copy the code from here : cloudnas/clouddrive - Docker Image | Docker Hub
please help me to check it
-
try this: https://codebeautify.org/yaml-validator
Or put the code in a code box. This forum does not support markdown.
-
try this: https://codebeautify.org/yaml-validator
Or put the code in a code box. This forum does not support markdown.
I tried this tool and it displays valid,but I got same error when copy them into stack of portainer.
I think portainer does not support "version: "2.1"", only support "version: "2""
-
-
your first line in volumes has two :
-
your first line in volumes has two :
yes, thanks a lot
-
I tried this tool and it displays valid,but I got same error when copy them into stack of portainer.
I think portainer does not support "version: "2.1"", only support "version: "2""
If your portainer does not support version 3 you are on the old image. Time to upgrade
Image name changed.
-
-
If your portainer does not support version 3 you are on the old image. Time to upgrade
Image name changed.
-
At the beginning you have four dashes, try to delete one of them.
-
At the beginning you have four dashes, try to delete one of them.
yes, you found it, after correct it, now it is working
-
-
chente
Added the Label resolved
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!