Last active
March 9, 2020 15:59
-
-
Save bard86/14f23408184c8e03b39736df5f67d4b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#curl -L https://github.com/docker/machine/releases/download/v0.16.2/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && | |
# chmod +x /tmp/docker-machine && | |
# sudo mv /tmp/docker-machine /usr/local/bin/docker-machine | |
$ export GOOGLE_PROJECT=_ваш-проект_ | |
$ export GOOGLE_APPLICATION_CREDENTIALS=_путь_к_файлу_ | |
$ export GCP_SERVICE_ACCOUNT_FILE=_путь_к_файлу_ | |
#$gcloud auth activate-service-account --key-file=$GCP_SERVICE_ACCOUNT_FILE | |
docker-machine create --driver google \ | |
--google-machine-image https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts \ | |
--google-machine-type n1-standard-1 \ | |
--google-zone europe-west1-b \ | |
docker-host | |
eval $(docker-machine env docker-host) | |
eval $(docker-machine env --unset) | |
docker-machine ip docker-host | |
docker-machine rm docker-host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment