Skip to content

Using docker  #51

Open
Open

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

Activity

  1. mxochicale commented on May 27, 2025

    @mxochicale
    OwnerAuthor
    sudo apt-get update && sudo apt-get upgrade
    sudo apt install docker.io
    
    $ docker version
    Client: Docker Engine - Community
     Version:           28.1.1
     API version:       1.49
     Go version:        go1.23.8
     Git commit:        4eba377
     Built:             Fri Apr 18 09:52:10 2025
     OS/Arch:           linux/amd64
     Context:           default
    
    Server: Docker Engine - Community
     Engine:
      Version:          28.1.1
      API version:      1.49 (minimum version 1.24)
      Go version:       go1.23.8
      Git commit:       01f442b
      Built:            Fri Apr 18 09:52:10 2025
      OS/Arch:          linux/amd64
      Experimental:     false
     containerd:
      Version:          1.7.27
      GitCommit:        05044ec0a9a75232cad458027ca83437aae3f4da
     runc:
      Version:          1.2.5
      GitCommit:        v1.2.5-0-g59923ef
     docker-init:
      Version:          0.19.0
      GitCommit:        de40ad0
    
    
    
  2. added a commit that references this issue on Jan 14, 2026
  3. added a commit that references this issue on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions