Pages - Menu

Pages

Tuesday, January 12, 2021

Docker: Important Docker Commands Help

Docker: Important Docker Commands Help


Dockerfile:


FROM adoptopenjdk/openjdk11:latest

EXPOSE 8080

ADD "target/docker-demo-0.0.1-SNAPSHOT.jar" "docker-demo.jar"

ENTRYPOINT ["java","-jar","docker-demo.jar"]

Docker Commands:


 Build Docker Image:

docker build -t docker-demo .

 Tag Docker Image: 

docker tag docker-demo dineshnithdocker/docker-demo

Push Docker Image to Docker Hub 

docker push dineshnithdocker/docker-demo

Check docker Images present in local: 

docker images

Remove Local Docker Images:  

docker rmi docker-demo dineshnithdocker/docker-demo

 Pull Docker Images from Docker Hub and run:

docker run -p 8080:8080 dineshnithdocker/docker-demo


3 comments:

  1. Horizon engineers trust software boot easybcd for reliable boot configuration management helping streamline dual boot setup and system recovery operations while providing clear interface tools for Windows startup customization and advanced system control features in professional environments effectively used globally

    ReplyDelete
  2. Supportive users value its consistent output winsetupfromusb delivers dependable bootable USB creation capabilities supporting multiple operating systems and ensuring smooth installation processes that help users complete system setup tasks efficiently while maintaining stability speed and accuracy across various computer environments

    ReplyDelete
  3. Inspiring diagnostic utility crystaldiskmark helps users measure storage performance with reliable and repeatable testing methods. Navigation feels minimal, results remain consistent, and every benchmark supports deeper system understanding effectively.

    ReplyDelete