Getting started with basic docker commands

What is Docker?

Package Software into Standardized Units for Development, Shipment, and Deployment

Get started with basic Docker commands:

1. Build an image from the docker file
ย  docker build [OPTIONS] PATH | URL | –
2. Images: Once the build is done the image can be viewed by the command as follows
ย  ย  docker images
3. Docker run
$ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]
For example docker run hello-world
docker run redis
4.ย  List the docker processes that are running currently.
docker ps
To list all the docker images in the machine:
docker ps -a
To stop running all containers
docker ps -aq
To remove containers
docker rmi
ย 

Discover more from A Streak of Communication

Subscribe to get the latest posts sent to your email.

Discover more from A Streak of Communication

Subscribe now to keep reading and get access to the full archive.

Continue reading