OK sorry and thank you for the for pointing out the right steps
Portainer is starting in generic mode.
-
-
Well if I try to deploy the stack I get
This container name is already used by another container running in this environment: portainer. -
Well if I try to deploy the stack I get
This container name is already used by another container running in this environment: portainer.You can't use that in a stack. You'd have to uninstall Portainer (either delete the container name in Portainer, or use the OMV button to uninstall it). Then use docker-compose to install that one.
-
-
I did put it on the back burner but I am just coming back to it but no joy
I removed portainer from the button I install it with dockercompose CLI
ligne 7 point at my data
- /srv/dev-disk-by-uuid-2673986a-ae3f-49c9-bf92-3fe6011743d8/docker/volumes/portainer_data
I ran the stack
but no matter what always land to a generic login page?
-
Sorry I come back to this thread after getting some good advice from RE: Nvidia installation #11-12-13 but since it is regarding this topic I am back here
anyway I tried to change the docker location from the GUI page /srv/dev-disk-by-uuid-2673986a-ae3f-49c9-bf92-3fe6011743d8/docker to an other disk /srv/dev-disk-by-uuid-37d059e6-8189-404a-967b-53afec96bf4f because this one is not on my system SSD (need to be elsewhere for OMV6 since it got formatted ) but for me it does not work I was not able to start the portainer docker compose got tons of error
Code
Alles anzeigenroot@openmediavault:/opt/containers/portainer# docker-compose up -d Traceback (most recent call last): File "urllib3/connectionpool.py", line 677, in urlopen File "urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1277, in request File "http/client.py", line 1323, in _send_request File "http/client.py", line 1272, in endheaders File "http/client.py", line 1032, in _send_output File "http/client.py", line 972, in send File "docker/transport/unixconn.py", line 43, in connect ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "requests/adapters.py", line 449, in send File "urllib3/connectionpool.py", line 727, in urlopen File "urllib3/util/retry.py", line 410, in increment File "urllib3/packages/six.py", line 734, in reraise File "urllib3/connectionpool.py", line 677, in urlopen File "urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1277, in request File "http/client.py", line 1323, in _send_request File "http/client.py", line 1272, in endheaders File "http/client.py", line 1032, in _send_output File "http/client.py", line 972, in send File "docker/transport/unixconn.py", line 43, in connect urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "docker/api/client.py", line 214, in _retrieve_server_version File "docker/api/daemon.py", line 181, in version File "docker/utils/decorators.py", line 46, in inner File "docker/api/client.py", line 237, in _get File "requests/sessions.py", line 543, in get File "requests/sessions.py", line 530, in request File "requests/sessions.py", line 643, in send File "requests/adapters.py", line 498, in send requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/main.py", line 80, in main File "compose/cli/main.py", line 189, in perform_command File "compose/cli/command.py", line 70, in project_from_options File "compose/cli/command.py", line 153, in get_project File "compose/cli/docker_client.py", line 43, in get_client File "compose/cli/docker_client.py", line 170, in docker_client File "docker/api/client.py", line 197, in __init__ File "docker/api/client.py", line 222, in _retrieve_server_version docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')) [1131] Failed to execute script docker-compose
so i came back to my original one, I got problem with NVIDIA not working but portainer was working so I modified again the daemon json from
{
"data-root": "/srv/dev-disk-by-uuid-2673986a-ae3f-49c9-bf92-3fe6011743d8/docker"
}
to the one for NVIDIA
Code{ "runtimes": { "nvidia": { "path": "/usr/bin/nvidia-container-runtime", "runtimeArgs": [] } }, "default-runtime": "nvidia" }
but now although my emby see NVIDIA and it is running ok I cannnot open Portainer
Code/opt/containers/portainer# docker-compose up -d Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/ Pulling portainer (portainer/portainer-ce:latest)... latest: Pulling from portainer/portainer-ce 7721cab3d696: Pull complete 0645e7e2a110: Pull complete 8f36f6c7596b: Pull complete Digest: sha256:af387baba14e0342e40d274c0c894fd333d3cca0d6737a8e1e0d6d9523c87a8a Status: Downloaded newer image for portainer/portainer-ce:latest Creating portainer ... done
So my question how to move docker to an other disk?
-
Sorry I come back to this thread after getting some good advice from RE: Nvidia installation #11-12-13 but since it is regarding this topic I am back here
anyway I tried to change the docker location from the GUI page /srv/dev-disk-by-uuid-2673986a-ae3f-49c9-bf92-3fe6011743d8/docker to an other disk /srv/dev-disk-by-uuid-37d059e6-8189-404a-967b-53afec96bf4f because this one is not on my system SSD (need to be elsewhere for OMV6 since it got formatted ) but for me it does not work I was not able to start the portainer docker compose got tons of error
Code
Alles anzeigenroot@openmediavault:/opt/containers/portainer# docker-compose up -d Traceback (most recent call last): File "urllib3/connectionpool.py", line 677, in urlopen File "urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1277, in request File "http/client.py", line 1323, in _send_request File "http/client.py", line 1272, in endheaders File "http/client.py", line 1032, in _send_output File "http/client.py", line 972, in send File "docker/transport/unixconn.py", line 43, in connect ConnectionRefusedError: [Errno 111] Connection refused During handling of the above exception, another exception occurred: Traceback (most recent call last): File "requests/adapters.py", line 449, in send File "urllib3/connectionpool.py", line 727, in urlopen File "urllib3/util/retry.py", line 410, in increment File "urllib3/packages/six.py", line 734, in reraise File "urllib3/connectionpool.py", line 677, in urlopen File "urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1277, in request File "http/client.py", line 1323, in _send_request File "http/client.py", line 1272, in endheaders File "http/client.py", line 1032, in _send_output File "http/client.py", line 972, in send File "docker/transport/unixconn.py", line 43, in connect urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "docker/api/client.py", line 214, in _retrieve_server_version File "docker/api/daemon.py", line 181, in version File "docker/utils/decorators.py", line 46, in inner File "docker/api/client.py", line 237, in _get File "requests/sessions.py", line 543, in get File "requests/sessions.py", line 530, in request File "requests/sessions.py", line 643, in send File "requests/adapters.py", line 498, in send requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/main.py", line 80, in main File "compose/cli/main.py", line 189, in perform_command File "compose/cli/command.py", line 70, in project_from_options File "compose/cli/command.py", line 153, in get_project File "compose/cli/docker_client.py", line 43, in get_client File "compose/cli/docker_client.py", line 170, in docker_client File "docker/api/client.py", line 197, in __init__ File "docker/api/client.py", line 222, in _retrieve_server_version docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused')) [1131] Failed to execute script docker-compose
so i came back to my original one, I got problem with NVIDIA not working but portainer was working so I modified again the daemon json from
{
"data-root": "/srv/dev-disk-by-uuid-2673986a-ae3f-49c9-bf92-3fe6011743d8/docker"
}
to the one for NVIDIA
Code{ "runtimes": { "nvidia": { "path": "/usr/bin/nvidia-container-runtime", "runtimeArgs": [] } }, "default-runtime": "nvidia" }
but now although my emby see NVIDIA and it is running ok I cannnot open Portainer
Code/opt/containers/portainer# docker-compose up -d Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/ Pulling portainer (portainer/portainer-ce:latest)... latest: Pulling from portainer/portainer-ce 7721cab3d696: Pull complete 0645e7e2a110: Pull complete 8f36f6c7596b: Pull complete Digest: sha256:af387baba14e0342e40d274c0c894fd333d3cca0d6737a8e1e0d6d9523c87a8a Status: Downloaded newer image for portainer/portainer-ce:latest Creating portainer ... done
So my question how to move docker to an other disk?
I'm a little confused here as to what exactly you done and why... but moving docker is easy with the mv command...
1. Figure out where docker is currently (all of this needs to be done as root)
That should show the path where docker is currently located (lets just say it's /var/lib/docker). Figure out where you want to move docker... for the sake of this argument, we'll move it to /srv/123456/docker
2. Stop docker
3. Move the docker folder (note the path examples I gave above, as I'm going to use them here)
Let it finish
4. Go to the omv webUI and omv-extras/docker
5. Change the path to your new path (ie, /srv/123456/docker)
6. Click save
7. Click Restart.
Let docker start and then verify it is the right path that you wanted...
-
-
well this is not working for me do not know why! I followed everything to the letter when I restart docker it is still at the place portainer is down I restart it
docker-compose up -d
but only the stack are there but no container running exept portainer
Code
Alles anzeigendocker info | grep Root Docker Root Dir: /var/lib/docker root@openmediavault:~# systemctl stop docker Warning: Stopping docker.service, but it can still be activated by: docker.socket root@openmediavault:~# root@openmediavault:~# sudo systemctl stop docker.socket root@openmediavault:~# mv /var/lib/docker /srv/dev-disk-by-uuid-37d059e6-8189-404a-967b-53afec96bf4f/docker root@openmediavault:~# docker info | grep Root Docker Root Dir: /var/lib/docker root@openmediavault:~# cd /opt/containers/portainer/ root@openmediavault:/opt/containers/portainer# docker-compose up -d Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/ Creating network "portainer_default" with the default driver Pulling portainer (portainer/portainer-ce:latest)... latest: Pulling from portainer/portainer-ce 7721cab3d696: Pull complete 0645e7e2a110: Pull complete 8f36f6c7596b: Pull complete Digest: sha256:af387baba14e0342e40d274c0c894fd333d3cca0d6737a8e1e0d6d9523c87a8a Status: Downloaded newer image for portainer/portainer-ce:latest Creating portainer ... done
Code
Alles anzeigenversion: "2" services: portainer: image: portainer/portainer-ce:latest container_name: portainer volumes: - /srv/dev-disk-by-uuid-37d059e6-8189-404a-967b-53afec96bf4f/test_portainer:/data - /var/run/docker.sock:/var/run/docker.sock - /etc/localtime:/etc/localtime:ro ports: - 8000:8000 - 9000:9000 restart: unless-stopped
-
You wrote:
ZitatI tried to change the docker location from the GUI page /srv/dev-disk-by-uuid-2673986a-ae3f-49c9-bf92-3fe6011743d8/docker to an other disk /srv/dev-disk-by-uuid-37d059e6-8189-404a-967b-53afec96bf4f
Did you copy the /var/lib/docker directory or the one you used for docker before?
-
From a previous backup I succeeded until I changed the runtime for NVIDIA driver to work with the the containers and then it came back with docker in
Dir: /var/lib/docker
so how to add the line I removed from docker runtime
"data-root": "/srv/dev-disk-by-uuid-37d059e6-8189-404a-967b-53afec96bf4f/docker"
to
{
"path": "/usr/bin/nvidia-container-runtime",
?
Code
Alles anzeigenroot@openmediavault:~# mv /var/lib/docker /srv/dev-disk-by-uuid-37d059e6-8189-404a-967b-53afec96bf4f/docker root@openmediavault:~# docker info | grep Root Docker Root Dir: /srv/dev-disk-by-uuid-37d059e6-8189-404a-967b-53afec96bf4f/docker root@openmediavault:~# cd /opt/containers/portainer/ root@openmediavault:/opt/containers/portainer# docker-compose up -d Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/ Pulling portainer (portainer/portainer-ce:latest)... latest: Pulling from portainer/portainer-ce 7721cab3d696: Pull complete 0645e7e2a110: Pull complete 8f36f6c7596b: Pull complete Digest: sha256:af387baba14e0342e40d274c0c894fd333d3cca0d6737a8e1e0d6d9523c87a8a Status: Downloaded newer image for portainer/portainer-ce:latest Creating portainer ... done root@openmediavault:/opt/containers/portainer# cd ~ root@openmediavault:~# docker info | grep Root Docker Root Dir: /srv/dev-disk-by-uuid-37d059e6-8189-404a-967b-53afec96bf4f/docker root@openmediavault:~# systemctl stop docker Warning: Stopping docker.service, but it can still be activated by: docker.socket root@openmediavault:~# systemctl start docker root@openmediavault:~# docker info | grep Root Docker Root Dir: /var/lib/docker
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!