Public Repository

Last pushed: 6 months ago
Short Description
http://[HOSTNAME]:8081/hello/world
Full Description

Dockerfile :

FROM webcenter/openjdk-jre

MAINTAINER rashmit.rathod@gmail.com

ADD target/hellodocker-1.0.jar /opt/

RUN chmod 777 /opt/hellodocker-1.0.jar

EXPOSE 8081

CMD ["java","-jar","/opt/hellodocker-1.0.jar"]


docker build -t rashmit/hellodocker .

docker login (with rashmit/pwd)

docker run -d -p 8081:8081 rashmit/hellodocker

docker push rashmit/hellodocker

docker pull rashmit/hellodocker

docker run -d -p 8081:8081 rashmit/hellodocker

Docker Pull Command
Owner
rashmit

Comments (0)