Coder Social home page Coder Social logo

Comments (4)

adriengivry avatar adriengivry commented on June 14, 2024 1

@BakasuraRCE Thanks for the answer! To be honest I just ditched rootless docker, and now I have 0 issue with Portainer, everything is so smooth 😅
Rootless docker is just a pain in the a** to deal with when using Portainer, half of the features are broken. Anyway, problem solved for me 😁

from portainer.

adriengivry avatar adriengivry commented on June 14, 2024

Workaround:

# Adding the rootless Docker user to the docker group
sudo usermod -aG docker $USER
newgrp docker

# Changing docker.sock permissions
sudo chmod 666 /var/run/docker.sock

# Restarting docker
systemctl restart docker

However this fixed this issue, I'm a bit concerned about this chmod 666 on the docker.sock, it might have side effects and be a security issue. Thoughts?

Edit: Even though this allows the stack to be deployed, the stack display no container, and the containers are created with sudo docker instead of docker.

from portainer.

adriengivry avatar adriengivry commented on June 14, 2024

I've disabled rootfull docker, and trying to create a stack from a Git repository with relative path triggers this error:

an error occurred while running unpacker container with exit code 255: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 

It seems like even though portainer is ran with rootless docker, it still tries to access rootfull docker to create this stack.
Maybe a bug in the relative path implementation using the sudo prefix where it shouldn't?

from portainer.

BakasuraRCE avatar BakasuraRCE commented on June 14, 2024

Don't ask me why this works, I don't understand the reason, but it does:

Create a symbolic link to the volume of your portainer on your host server

$ ln -s /home/USER_HERE/.local/share/docker/volumes/portainer-prod_portainer_data/_data /data

Now try to deploy but do not enable relative paths

This works well temporarily, but in an environment multi-node we need Portainer to solve it

from portainer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.