11 - Docker Installations on Linux
11 - Docker Installations on Linux
Install process
● Connect to Linux
● Install Docker
● Start Docker
● Stop Docker
● Uninstall Docker
Links
● https://docs.docker.com/install/
● https://labs.play-with-docker.com/
● http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basic
s.html
Installing Docker engine on Ubuntu
$uname -a ---> to get OS(AMI) details
$sudo apt-get update → if you didn’t switch to root user, use sudo before your
command
$docker run hello-world --> to run image / if image is not present in you hub, it
goes and get from central
Basic commands
$docker images --help → for getting more info regarding image command
Go to docker hub for checking images, and search for image and pull it
$docker pull <image name>:tag ---> for pulling image with particular image
$docker run --name MyUbuntu -it ubuntu bash --> you are now inside ubuntu
$docker ps -a
$docker inspect <image name> --> to see image file content
$docker rmi <image name> --> to delete image (it is possible only when container
is not running)