






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Docker Document For the session
Typology: Schemes and Mind Maps
1 / 11
This page cannot be seen from the preview
Don't miss anything!







Step 1 : One time setup in settings.xml file (Credentials) Step 2 : Add the Below Plugins in Pom.xml file Step 3 : Run as Maven Build -> mvn clean install jib:build
Step 4 : Docker HUB Verification(Two Version will be created one with Defined & Latest) Sl.no Docker Command Docker Command Purpose 1 docker images List of containers 2 docker run --name redis-latest redis:latest docker run --name redis-latest 9da089657551 Docker Run Command 3 docker ps Docker Running status Verification 4 syntax : docker stop "container_id" eg : docker stop 285d5a8ed868 Docker stop Command 5 docker ps -a To verify container stop status 6 syntax : docker start "container_id" eg : docker start 285d5a8ed868 Restart Docker 7 syntax : docker rm "container_id" eg : docker rm 285d5a8ed868 Docker Remove command
syntax : docker logs "container_id" eg : docker logs 285d5a8ed868 Docker Logs 13 syntax : docker exec -it containerid /bin/sh eg : docker exec -it b30f6cb970d6 /bin/sh Need to perform some operation inside t docker container 14 docker build -t dockerrepo/serviceregistry :0.0.1. Docker Build Images 15 docker run -d -p9296:9296 -e EUREKA_SERVER_ADDRESS=http://host.docker.internal:8761/eureka --name configserver 9f36778581db Docker Running with Environment Variab 16 docker run -d -p9090:9090 -e CONFIG_SERVER_URL=host.docker.internal -e EUREKA_SERVER_ADDRESS=http://host.docker.internal:8761/eureka --name cloudgateway f7549493d464 Docker Running with Multiple Variable Pa
step 1 : docker login step 2: syntax : docker tag imageid username/imageid:tag docker tag f76101930263 mkprasanna311091/f76101930263:0.0. step 3: docker push mkprasanna311091/f76101930263:0.0.1 Docker Push to Docker HUB Repository 18 docker system prune -a Docker cleanup 19 docker-compose -f docker-compose.yml up -d Docker Compose Purpose to start multip docker at a time based on the configurati defined. It can also define the order of st dependency. 20 docker-compose -f docker-compose.yml down -d Docker Compose Purpose to stop multipl at a time based on the configuration defi 21 docker rmi imageid Docker command to remove the image.