Skip to content

Instantly share code, notes, and snippets.

@giansalex
Last active July 5, 2019 14:30
Show Gist options
  • Save giansalex/e357e9842f654d364fcd4d9739b7d627 to your computer and use it in GitHub Desktop.
Save giansalex/e357e9842f654d364fcd4d9739b7d627 to your computer and use it in GitHub Desktop.
Docker - steps to publish

Steps

Build

Go DockerFile's directory, run:

docker build -t local/myimage .

Build

docker run -p 8090:80 --name name_container local/myimage:version

Push to Docker Hub

Tagging.

docker tag local/myimage username/myimage:version

Push

docker push username/myimage:version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment