Using docker-machine is another way to host your google compute instance with docker.
docker-machine create \
--driver google \
--google-project $PROJECT \
--google-zone asia-east1-c \
--google-machine-type f1-micro $YOUR_INSTANCE
If you want to login this machine on google cloud compute instance, just use docker-machine ssh $YOUR_INSTANCE
Refer to docker machine driver gce
Note:
The progress of docker-machine might be slow because it need connect to Google Compute Engine.
Do not use multiple docker-machine creation, because docker need to write related information on docker.sock. You might occur error on Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF).
Using docker-machine to create local vbox vm will install docker 1.12 rc1, but on GCP will using 1.11. So, we could use docker swarm mode :(
1. Just Deploy the same on Heroku Remember your heroku ID and app address. ex: https://APP_ADDRESS.herokuapp.com/ 2. Create a Facebook Page Make sure you already have Facebook account, if you need use FB Bot. 3. Go to Facebook Developer to create App Create App, need select as follow: New App type [Web App], create app Add new product [Messenger] 4. Configuration Messenger Bot Get token from Faccebook page. Select a “Page” you own. Go to “Meseenger” product. It will generate token copy it and store it. 5. Paste Token to Heroku Go to heroku dashboard, go to “Setting” -> “Config Variables”. Add “Config Vars” Name -> “TOKEN” Value use token facebook app. 6. Back Facebook App configuration Go to “Messenger” product Go to “Setup Webhooks” Fill https://APP_ADDRESS.herokuapp.com/webhook in callback URL. Fill your token in “token”. Checked the checkbox “message_deliveres”, “messages”. If your configuration is correct, it will show “completed”. Also...