Git Product home page Git Product logo

Steps to create docker image from Java application Step1: First create one instance in Google cloud.

Step2: Open the browser from GCP

Then go to sudo user:

Once successfully connect the instance then do the update command: yum update -y Step5:Install the docker in GCP command: yum install docker -y Step6:check the docker running status. Below its showing running. service docker status

Step8:Install git in this machine because we need to clone project and create the image,push in to docker hub command: yum install git Step9: Take my code and do the clone,

git clone https://github.com/RameshEY/RameshEY.git

Step10:Check the docker file inside this project.

Step11:Create docker image

docker build -t learning-demo .

Step12:check the images

Push the Image: Step1: First create the account in the docker hub(dockerhub.com) Step2: Already created -->Docker Id:_______ -->Docker user name:-----Email id -->Chose password Step3:

docker tag learning-demo username/learning-demo Exam:docker tag learning-demo testdockerramesh/learning-demo

Step4: login in to docker hub docker login --username <> --password ****

push the image: docker push testdockerramesh/learning-demo

Sceen shot:

Pull the image: Create another machine. Install the docker and pull the image.

docker pull testdockerramesh/learning-demo

Run the container:

docker run -d -p 8054:8054 testdockerramesh/learning-demo

After run the container then go to firewall allow the port as 8054

Check the application access from out side:

rameshey's Projects

ansible-for-aws icon ansible-for-aws

Ansible examples from my book "Ansible for AWS" http://leanpub.com/ansible-for-aws

ansible-run-in-parallel icon ansible-run-in-parallel

Learn how to run Ansible tasks in parallel. Suitable when calling slow modules, such as cloud modules.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.