Difference between revisions of "Docker tutorial"

From rbachwiki
Jump to navigation Jump to search
Line 5: Line 5:
== Docker Commands ==
== Docker Commands ==
  docker run application
  docker run application
*Run application, if it does not exist, it will pull it down
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
 
 


'''Run ubnutu image locally '''
'''Run ubnutu image locally '''

Revision as of 17:25, 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


Run ubnutu image locally Install docker form docker.com

docker run -it ubuntu

Docker