Skip to content

Using docker  #51

@mxochicale

Description

@mxochicale

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions