Deploy docker to gcp How to auth: gcloud auth login
gcloud auth configure-docker
*NOTE:
Config has been stored here: /Users/rohit/.docker/config.json
Delete this if docker causes issues*.
How to login: gcloud beta compute ssh --zone "us-central1-a" "instance-1" --project "silent-thunder-276920”
Password: rohit
How to build: docker build --tag image:tag .
docker tag image:tag gcr.io/projectid/image:tag
docker push gcr.io/projectid/image:tag
How to create a service and deploy docker service create --env MONGODB_URL=mongodb://10.128.0.3 \
--env AUTOTHROTTLE_TARGET_CONCURRENCY=2.0 --name crawlerslow \
[gcr.io/silent-thunder-276920/slowcrawler:latest](http://gcr.io/silent-thunder-276920/slowcrawler:latest)