-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Creating this one to add few details to use docker in Ubuntu
- 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/
- 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
Reactions are currently unavailable