Closed encryptblockr closed 5 months ago
https://github.com/portainer/portainer/issues/11451
when trying to add new docker swarm environment in portainer
# docker service create \ > --name portainer_agent \ > --network portainer_agent_network \ > -p 9001:9001/tcp \ > --mode global \ > --constraint 'node.platform.os == linux' \ > --mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock \ > --mount type=bind,src=//var/snap/docker/common/var-lib-docker/volumes,dst=/var/snap/docker/common/var-lib-docker/volumes \ > portainer/agent:2.19.4 k29p0hppmcjhttclii5i700pw overall progress: 0 out of 3 tasks 4hf9xpn0n6lg: mkdir /var/lib/docker: read-only file system 8fxr6ab7mj67: mkdir /var/lib/docker: read-only file system lz1dkn8xq4i2: mkdir /var/lib/docker: read-only file system
i also tried this
# docker service create \ > --name portainer_agent \ > --network portainer_agent_network \ > -p 9001:9001/tcp \ > --mode global \ > --constraint 'node.platform.os == linux' \ > --mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock \ > --mount type=bind,src=//var/snap/docker/common/var-lib-docker/volumes,dst=/var/lib/docker/volumes \ > portainer/agent:2.19.4 pvkael1rlxlay7tdg5r13i6g8 overall progress: 0 out of 3 tasks 4hf9xpn0n6lg: mkdir /var/lib/docker: read-only file system 8fxr6ab7mj67: mkdir /var/lib/docker: read-only file system lz1dkn8xq4i2: mkdir /var/lib/docker: read-only file system
it should respect the path given of
/var/snap/docker/common/var-lib-docker
but instead it keeps trying
/var/lib/docker
install docker with snap
snap install docker
this has the following paths for docker
# ls -ld /var/snap/docker/common/var-lib-docker/ drwx--x--- 13 root root 4096 Mar 24 06:51 /var/snap/docker/common/var-lib-docker/ # ls -lha /var/run/docker.sock srw-rw---- 1 root root 0 Mar 24 06:51 /var/run/docker.sock
https://github.com/portainer/portainer/issues/11451#issuecomment-2019245002
https://github.com/portainer/portainer/issues/11451
when trying to add new docker swarm environment in portainer
i also tried this
it should respect the path given of
but instead it keeps trying
install docker with snap
this has the following paths for docker
https://github.com/portainer/portainer/issues/11451