Quantcast
Channel: Tutorials — LowEndTalk
Viewing all articles
Browse latest Browse all 1028

Docker basic commands and functioning

$
0
0

If you are developer or a Devops engineer, you probably wanted to deploy your code in a high efficient and self containers, the solution is docker.

Docker is a containerization technology to deploy and test web applications on nodejs,python,FLASK,ruby on rails and so on.

Editions

Docker ce(community edition) -------------> cost free

Docker ee(enterprise edition)

We can install docker on any linux flavoured distributions such as centos, redhat, ubutnu or debian

You can run this on windows by using virtualbox

Docker community edition installation in ubuntu

ubuntu

sudo apt-get update

sudo apt-get install docker-ce

Docker basic commands usage

To pull an image from dockerhub( a website or central source for storing and pulling docker repositories )

docker pull image_name

To run docker container

docker container run -t container_name

-t -----------> we can tag containers

To list all images

docker ls images

To list containers

docker container ls

To remove containers

docker container rm

To list docker networks

docker network ls

To enter into a running container

docker container exec -it container_name bash

-it -----------> interactive terminal

It will enter into a bash terminal of the running container

To inspect and getting maximum info about docker networks

docker network inspect network_name

To view docker disk space usage

docker system df

or

docker system df -v

To view docker installation setup

docker system info

To run docker compose file

docker-compose up

=====================/////////////////////////================================


Viewing all articles
Browse latest Browse all 1028

Trending Articles