Getting started with Docker

Installation docker on a ubuntu machine - use the following commands

sudo apt-get install docker.io

To verify the docker is installed and check its version:

sudo docker version

Create a simple docker container in interactive mode


Here in the below command - it used base ubuntu image , if ubuntu is available on ur machine it will pull from der else pulls from docker public repo-called as docker hub

sudo docker run -t -i —name “ur container name” ubuntu /bin/bash

Now the new container is created by name given and the control is now the the newly created container.

List the containers on the machine

docker ps -a

delete the container - 

sudo docker rm “container name”

list docker images available - 

docker images

get out from the container 


exit

Comments

Popular posts from this blog

Cross Browser testing for React Apps

Fixing the appium installation with NPM

Challenges in testing ChatBots