Difference between revisions of "Docker tutorial"

From rbachwiki
Jump to navigation Jump to search
Line 18: Line 18:
  docker rm
  docker rm
  remove a container
  remove a container
docker images
list images locally
docker rmi nginx
will delete the image permanently
docker pull nginx
will pull the nginx image down but not run it





Revision as of 17:37, 2 May 2022

Installing Docker on Ubuntu =

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

Docker Commands

docker run application
Run application, if it does not exist, it will pull it down
docker ps
list all running containers
docker ps -a
see all running container
docker stop
stop a container
docker rm
remove a container
docker images
list images locally
docker rmi nginx
will delete the image permanently
docker pull nginx
will pull the nginx image down but not run it



Run ubnutu image locally Install docker form docker.com

docker run -it ubuntu

Docker