Skip to content

Instantly share code, notes, and snippets.

@kumar-de
Last active August 20, 2019 21:39
Show Gist options
  • Save kumar-de/7edc9a657564b535fdd13d9c1e163102 to your computer and use it in GitHub Desktop.
Save kumar-de/7edc9a657564b535fdd13d9c1e163102 to your computer and use it in GitHub Desktop.
Build docker container for jars

Build and push a docker image into hub.docker.com


Docker login already, if you haven't

docker login

Inside the directory containing the Dockerfile

docker build -t achintyakumar/cloud_connector:1.0 .

Tag the image

docker tag 888dd8r8f8 achintyakumar/cloud_connector:1.0

Upload the image to Docker Hub

docker push achintyakumar/cloud_connector:1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment