Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image RemovedImage Added


on Debianhttps://docs.docker.com/engine/install/debian/

sudo apt update
sudo apt install -y ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable docker
sudo systemctl start docker


sudo docker --version
sudo docker run hello-world
sudo docker ps
docker images
on Kali ( debian ) 

install docker.io ( not docker already exist in Kali ? ) 

docker.io is more stable then the docker-ce ( community edition)


https://www.kali.org/docs/containers/installing-docker-on-kali/

sudo usermod -aG docker $USER

run docker command without sudo right




https://docs.docker.com/engine/install/linux-postinstall/

  1. Create the docker group.

    $ sudo groupadd docker
    
  2. Add your user to the docker group.

    $ sudo usermod -aG docker $USER

Install on ubuntu:


sudo apt-get install docker.io




Install on Centos ( + start the service )


yum install docker

systemctl status docker.service -l

systemctl start docker.service

systemctl is-enable docker