Linux serverNETWORK ADMINISTRATIONS

Devops Docker Image n Container Building image n run

07 06 2021
docker -v

docker pull centos:6

docker images

docker ps

docker ps -a

docker run -it hello-world

docker run -it ubuntu bash

docker run it ubuntu bash

docker images

docker ps

to delete image , stop container n remove contrainer first

docker ps -a

to stop container

docker stop containerid

docker rm container id

to delete image

docker rmi imageid

——————————————

Kubernetes is an open-source container-orchestration
system for automating computer application deployment,
scaling, and management
————————————–
create own images

based app

based on

Dockerfile

FORM centos:7
CMD echo Hello Docker in centos7

docker build -t demodocker:1 .

docker run -it demodocker:1

docker images

docker ps -a

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *