Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With docker already installed, following the instructions to create new user, that user needs to be manually added to docker group #231

Open
Dowster64 opened this issue Dec 7, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@Dowster64
Copy link

Just a heads up, and I haven't got the l99 example running again yet but in the instructions it may be necessary to include instructions to add this new user to docker group?
Thanks,

@ottobolyos
Copy link
Collaborator

@Dowster64, how did you install Ladder99 and Docker?

We have a script to install Docker, although I usually do it this way on Debian-like distributions:

non_root_user='user'

# Update the `apt` package index and install packages to allow `apt` to use a repository over HTTPS
sudo apt-get -y install ca-certificates curl gnupg lsb-release

# Add Docker's official GPG key
sudo mkdir -m 0755 -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

# Use the following command to set up the repository
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Update repositories
sudo apt-get -y update

# Install Docker Engine, `containerd`, and Docker Compose
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# Add non-root user do `docker` group
sudo usermod -aG docker "$non_root_user"

Either way, the user should be added to the docker group. If you chose to install Docker differently, you need configure it manually (incl adding a non-root user to the docker group). Therefore, I am closing this as a non-issue. Feel free to re-open it if I didn’t got you.

@ottobolyos ottobolyos added the wontfix This will not be worked on label Dec 7, 2023
@ottobolyos ottobolyos closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
@ottobolyos
Copy link
Collaborator

It is possible though that you are following the installation guide at docs.ladder.99.com. It might need some cleanup.

@ottobolyos ottobolyos reopened this Dec 7, 2023
@ottobolyos ottobolyos added documentation Improvements or additions to documentation and removed wontfix This will not be worked on labels Dec 7, 2023
@Dowster64
Copy link
Author

@ottobolyos I was indeed following the installation guide on the docs. I had docker installed anyway on my pi as I have a framework set up for Industry 4.0 support which is docker based. I had problems with time and wanted to start afresh so I thought I ought to revisit my installation - which I had to do as I did update via git and it broke the last install... (see my real bug!). I did manually add the new user to the docker goup. I just wanted to ask if the documentation could mention this (as you picked up - thankyou)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants