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

Using docker #51

Open
mxochicale opened this issue Nov 18, 2023 · 0 comments
Open

Using docker #51

mxochicale opened this issue Nov 18, 2023 · 0 comments

Comments

@mxochicale
Copy link
Owner

mxochicale commented Nov 18, 2023

Creating this one to add few details to use docker in Ubuntu

  1. Installation
sudo apt update
sudo apt install docker.io
docker version
Client:
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.3
 Git commit:        24.0.5-0ubuntu1~20.04.1
 Built:             Mon Aug 21 19:50:14 2023
 OS/Arch:           linux/amd64
 Context:           default
permission denied while trying to 
connect to the Docker daemon socket at unix:///var/run/docker.sock:

https://www.howtoforge.com/tutorial/how-to-create-docker-images-with-dockerfile/

  1. Linux post-installation steps for Docker Engine
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
docker run hello-world
reboot
#chmod 777 /var/run/docker.sock
#sudo chmod 666 /var/run/docker.sock

https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user

References

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

No branches or pull requests

1 participant