Skip to content

andalike/docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installing Docker

1  sudo apt-get remove docker docker-engine docker.io
2  sudo apt-get update
3  sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common
4  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
5  sudo apt-key fingerprint 0EBFCD88
6  sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
7  sudo apt-get update
8  sudo apt-get install docker-ce docker-ce-cli containerd.io
9  sudo docker run hello-world

List Docker CLI commands

1 docker
2 docker container --help

Display Docker version and info

1 docker --version
2 docker version
3 docker info

Execute Docker image

1 docker run hello-world

List Docker images

1 docker image ls

List Docker containers (running, all, all in quiet mode)

1 docker container ls
2 docker container ls --all
3 docker container ls -aq

Remove docker image

1 docker rmi <<imageName>>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published