Docker Stacks

    • Official Post

    I've had to re-install OMV. Tring to redeploy my saved stacks but none of them are working. Has the way stacks are deployed in Portainer changed recently?

    You probably didn't have portainer mapped to a /data directory. This is where that stuff is saved. I'm guessing in Portainer under stacks it shows them as "limited" control (or something like that.. ).. rather than "full"


    Easiest way to do this is to install portainer with docker-compose (it's to late for you now, but for future reference)


    mkdir portainer

    cd portainer

    nano docker-compose.yml

    copy-paste the below, and adjust your volume mapping for /data

    Cntrl X, then Y, then Enter to save

    Back at the prompt

    Code
    docker-compose up -d

    If you ever have to reinstall.. make sure that data folder is backed up, reinstall, and then install Portainer with docker-compose and make sure it's pointed at that data volume... All your stacks will be there and can be easily edited or redeployed.

    • Official Post

    I've done all that but I still cant get the stacks working. Just got a long red box message something about the container is already in use but its not installed.

    I told you it's not going to help you at this point.. because you didn't have it set up that way before you reinstalled. If you're trying to set this up in anticipation of the next time this happens.. You need to uninstall Portainer (however you installed it before).. or use Portainer to delete the portainer container (you can do that)..


    Then run the docker-compose.

  • portainer has been uninstalled/removed from omv web gui.

    setup docker compose with mapped data drive per post #2

    ran docker-compose up -d

    logged into portainer ui

    tried to deploy one of my stacks - didn't work.

    edit: log says No log line matching the '' filter

    • Official Post

    Never seen that one.


    Did you try a second one to see if maybe it was just something wrong with that stack?

  • Never seen that one.


    Did you try a second one to see if maybe it was just something wrong with that stack?

    Yes tried all of them.


    This is a further log for resilio. Looks like some connection issue?

  • Is your server online?


    What is the output of


    Code
    ping -c5 google.com


    It looks like it might be a DNS error.

    Its online and receiving data

    • Official Post

    Its online and receiving data

    Nevermind.. definitely not that.


    It's complaining about a connection problem though from the log.. weird.

  • Before you give up. lets try to figure out wht the problem really is: from the cli:


    docker ps -a

    docker volume ls

    docker run hello-world


    Post the output of each of these commands.

    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.

  • root@OMV:~# docker ps -a

    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

    75b269ea6a79 dlandon/logitechmediaserver "/sbin/my_init" 28 minutes ago Created lms

    ae6545936d5e portainer/portainer-ce:latest "/portainer" About an hour a go Up About an hour 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 9443/tcp, 0.0 .0.0:9200->9000/tcp, :::9200->9000/tcp portainer


    root@OMV:~# docker volume ls

    DRIVER VOLUME NAME

    local 7a5250ccf928a4208e5c34c4f9dd368121e202e6d6510a0084f0dd8317d6ba27

    local 90a98d50365e43420f8b723ca37012ab732c315c8ea547138677321556a8e7b5

    local portainer_data


    root@OMV:~# docker run hello-world

    Unable to find image 'hello-world:latest' locally

    latest: Pulling from library/hello-world

    2db29710123e: Pull complete

    Digest: sha256:507ecde44b8eb741278274653120c2bf793b174c06ff4eaa672b713b3263477b

    Status: Downloaded newer image for hello-world:latest

    Hello from Docker!

    This message shows that your installation appears to be working correctly.

    To generate this message, Docker took the following steps:

    1. The Docker client contacted the Docker daemon.

    2. The Docker daemon pulled the "hello-world" image from the Docker Hub.

    (amd64)

    3. The Docker daemon created a new container from that image which runs the

    executable that produces the output you are currently reading.

    4. The Docker daemon streamed that output to the Docker client, which sent it

    to your terminal.

    To try something more ambitious, you can run an Ubuntu container with:

    $ docker run -it ubuntu bash

    Share images, automate workflows, and more with a free Docker ID:

    https://hub.docker.com/

    For more examples and ideas, visit:

    https://docs.docker.com/get-started/

Participate now!

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