Docker Stacks

  • Assuming the helloworld image has not been on your computer befor pulling and starting containers works.


    Next step:


    docker image ls


    create a new directory somewhere and cd to it

    create a file docker-compose.yml and paste one of the stack which do not start into it

    docker-compose up and paste the output into a code box </> in the editor bar, easier to read than the inlie command.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

    • Official Post

    That's what is weird, he got portainer to install via docker-compose...


    I'm wondering if it's a permission issue on one of those the /data folder.

  • root@OMV:~# docker image ls

    REPOSITORY TAG IMAGE ID CREATED SIZE

    dlandon/logitechmediaserver latest 53a4242e55d1 4 weeks ago 1.38GB

    portainer/portainer-ce latest 0df02179156a 7 weeks ago 273MB

    hello-world latest feb5d9fea6a5 4 months ago 13.3kB


    Looks like this is the problem?

    root@OMV:~# docker-compose up

    ERROR:

    Can't find a suitable configuration file in this directory or any

    parent. Are you in the right directory?

    Supported filenames: docker-compose.yml, docker-compose.yaml

  • Did you create the docker-compose.yml file in the directory? It only say, it does not know what to start.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Though I initially installed Portainer through the web interface but was told to remove it and go through CLI. So my docker compose in in cd portainer


    root@OMV:~/portainer# docker-compose up

    Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/

    portainer is up-to-date

    Attaching to portainer

    portainer | level=info msg="2022/01/30 18:36:15 [INFO] [internal,ssl] [message: no cert files found, generating self signed ssl certificates]"

    portainer | 2022/01/30 18:36:15 server: Reverse tunnelling enabled

    portainer | 2022/01/30 18:36:15 server: Fingerprint 0a:d0:93:5b:92:8b:e0:2b:37:b3:7c:67:71:47:6a:db

    portainer | 2022/01/30 18:36:15 server: Listening on 0.0.0.0:8000...

    portainer | level=info msg="2022/01/30 18:36:15 [INFO] [cmd,main] Starting Portainer version 2.11.0"

    portainer | level=info msg="2022/01/30 18:36:15 [DEBUG] [chisel, monitoring] [check_interval_seconds: 10.000000] [message: starting tunnel management process]"

    portainer | level=info msg="2022/01/30 18:36:15 [DEBUG] [internal,init] [message: start initialization monitor ]"

    portainer | level=info msg="2022/01/30 18:36:15 [INFO] [http,server] [message: starting HTTPS server on port :9443]"

    portainer | level=info msg="2022/01/30 18:36:15 [INFO] [http,server] [message: starting HTTP server on port :9000]"

    portainer | level=info msg="2022/01/30 18:37:02 http error: A valid authorisation token is missing (err=Unauthorized) (code=401)"

    portainer | level=info msg="2022/01/30 18:37:02 http error: A valid authorisation token is missing (err=Unauthorized) (code=401)"

    portainer | level=info msg="2022/01/30 18:37:02 http error: A valid authorisation token is missing (err=Unauthorized) (code=401)"

    portainer | level=info msg="2022/01/30 18:37:02 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)"

    portainer | level=info msg="2022/01/30 18:37:02 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)"

    portainer | level=info msg="2022/01/30 18:37:02 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)"

    portainer | level=info msg="2022/01/30 18:37:16 http error: Unable to initiate communications with environment (err=unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined) (code=500)"

    portainer | level=info msg="2022/01/30 18:42:30 http error: failed to deploy a stack: Pulling resilio-sync (lscr.io/linuxserver/resilio-sync:)..."

    portainer | level=info msg="Creating resilio-sync ... "

    portainer | level=info

    portainer | level=info msg="ERROR: for resilio-sync UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info

    portainer | level=info msg="ERROR: for resilio-sync UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info msg="An HTTP request took too long to complete. Retry with --verbose to obtain debug information."

    portainer | level=info msg="If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60)."

    portainer | level=info msg=": exit status 1 (err=failed to deploy a stack: Pulling resilio-sync (lscr.io/linuxserver/resilio-sync:)..."

    portainer | level=info msg="Creating resilio-sync ... "

    portainer | level=info

    portainer | level=info msg="ERROR: for resilio-sync UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info

    portainer | level=info msg="ERROR: for resilio-sync UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info msg="An HTTP request took too long to complete. Retry with --verbose to obtain debug information."

    portainer | level=info msg="If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60)."

    portainer | level=info msg=": exit status 1) (code=500)"

    portainer | level=info msg="2022/01/30 18:46:38 http error: failed to deploy a stack: Pulling resilio-sync (lscr.io/linuxserver/resilio-sync:)..."

    portainer | level=info msg="Recreating resilio-sync ... "

    portainer | level=info

    portainer | level=info msg="ERROR: for resilio-sync UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info

    portainer | level=info msg="ERROR: for resilio-sync UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info msg="An HTTP request took too long to complete. Retry with --verbose to obtain debug information."

    portainer | level=info msg="If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60)."

    portainer | level=info msg=": exit status 1 (err=failed to deploy a stack: Pulling resilio-sync (lscr.io/linuxserver/resilio-sync:)..."

    portainer | level=info msg="Recreating resilio-sync ... "

    portainer | level=info

    portainer | level=info msg="ERROR: for resilio-sync UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info

    portainer | level=info msg="ERROR: for resilio-sync UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info msg="An HTTP request took too long to complete. Retry with --verbose to obtain debug information."

    portainer | level=info msg="If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60)."

    portainer | level=info msg=": exit status 1) (code=500)"

    portainer | level=info msg="2022/01/30 19:36:24 http error: failed to deploy a stack: Pulling lms (dlandon/logitechmediaserver:)..."

    portainer | level=info msg="Creating lms ... "

    portainer | level=info

    portainer | level=info msg="ERROR: for lms UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info

    portainer | level=info msg="ERROR: for lms UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info msg="An HTTP request took too long to complete. Retry with --verbose to obtain debug information."

    portainer | level=info msg="If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60)."

    portainer | level=info msg=": exit status 1 (err=failed to deploy a stack: Pulling lms (dlandon/logitechmediaserver:)..."

    portainer | level=info msg="Creating lms ... "

    portainer | level=info

    portainer | level=info msg="ERROR: for lms UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info

    portainer | level=info msg="ERROR: for lms UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)"

    portainer | level=info msg="An HTTP request took too long to complete. Retry with --verbose to obtain debug information."

    portainer | level=info msg="If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60)."

    portainer | level=info msg=": exit status 1) (code=500)"

    portainer | level=info msg="2022/01/30 20:19:26 http error: failed to deploy a stack: Pulling urbackup (morlan/urbackup_docker:latest)..."

    portainer | level=info msg="The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing."

    portainer | level=info

    portainer | level=info msg="pull access denied for morlan/urbackup_docker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"

    portainer | level=info msg=": exit status 1 (err=failed to deploy a stack: Pulling urbackup (morlan/urbackup_docker:latest)..."

    portainer | level=info msg="The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing."

    portainer | level=info

    portainer | level=info msg="pull access denied for morlan/urbackup_docker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"

    portainer | level=info msg=": exit status 1) (code=500)"

  • That's what is weird, he got portainer to install via docker-compose...


    I'm wondering if it's a permission issue on one of those the /data folder.

    To be honest, I can not make sense of the error message. The resilio image is not on the server, but it is starting up ???


    Is portainer talking to the local docker daemon? Let's see

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • I did not see that while posting. Have you configured portainer after installing it with the docker-compose.yml?

    it lloks like portainer is not configured to talk to you local docker daemon and has no admin credentials.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • I did not see that while posting. Have you configured portainer after installing it with the docker-compose.yml?

    it lloks like portainer is not configured to talk to you local docker daemon and has no admin credentials.


    After my OMV re-installation due to system drive failure, I installed Portainer through the OMV web UI but was told not to do that. So I removed it and followed the instructions on post #2.


    It seems since my first OMV / Portainer installation a couple of years ago, things have changed so it seems there are further steps required?

  • Set the admin password

    Define the docker host (local) to talk to.


    I do not see, how you could do without that.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • I just started the portainer docker-compose posted earlier in this thread:


    What do you have in the yellow spot?

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • So the situation is, you can create a "stack" from a docker-compose.yml, but not from the sae definition inside portainer.

    Is this understanding correct?


    Second: You did create a new directory for portainer when creating it from docker-compose.yml

    Can you show me the permissions auf the directories AppData and AppData/portainer and the contents of AppData/portainer.

    Use ls -la and paste inside a code box please (notinline code)

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Well I have not tried creating stacks (other than portainer) from docker-compose.yml but yes I cannot create any stacks from inside portainer, which is what I normally/can do.


  • OK, permissions are messed up, start all over, one command at a time.


    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • OK, permissions are messed up, start all over, one command at a time.


    ok really appreciate the help!


    step 1 - i presume you meant cd then the directory to stop portainer but when i try to stop portainer (step 2) i get an error it can't find the docker-compose.yml file. This is because in #2, the instructions were to set up a new directory /portainer which maybe where the error has occurred. This directory happened from my root. So think I get the gist of your approach. The mkdir portainer should happen on the external drive

  • You are right, i usually place my docker-compose.yml inside a directory i use for the config data of the container. if you need help, just post.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • You are right, i usually place my docker-compose.yml inside a directory i use for the config data of the container. if you need help, just post.

    Well I have followed the steps carefully and done this twice (i.e. removed portainer, reset permissions/ re-install). But on both occasions when I go into portainer to setup one or two of my stacks....same problem as before.


    i think we have to admit defeat.

  • Did you check, the ACLs and the SGID bit are unset?


    Never surrender

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Did you check, the ACLs and the SGID bit are unset?


    Never surrender

    Not sure how to do that.


    I've been on this for 3 days solid. As you know (and helped me) my original OMV had a hard drive failure, so had to deal with that.


    I just need a break from this, so maybe I will be back tomorrow.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!