Skip to content

Instantly share code, notes, and snippets.

@its-dibo
Last active November 7, 2021 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save its-dibo/8cad24d0cacaae7bb407966f7c39ecf1 to your computer and use it in GitHub Desktop.
Save its-dibo/8cad24d0cacaae7bb407966f7c39ecf1 to your computer and use it in GitHub Desktop.
docker commands

Docker

build

docker build . -t $image

view

docker run -it --rm=true $image sh

push

docker push $image

run

docker run -it -p 4200:4200 --rm $image

gCloud

login

gcloud auth login

deploy

gcloud run deploy cms-run --image=$image --platform=managed --port=4200 --region=europe-west1 --allow-unauthenticated

run

PORT=4200 && docker run -p 9090:${PORT} -e PORT=${PORT} --rm $image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment