GCE Script :安裝 npm, docker, docker compose
建立 instance 的時候可加入 start script 一並安裝需要的軟體 將下列 script 貼到 Startup script 中,建立 instance 後,即可使用 npm, docker 與 docker compose *下列 script 適用於 ubuntu ##### npm section ##### sudo apt-get update -y sudo apt-get install -y npm ##### docker section ##### curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get update -y apt-cache policy docker-ce sudo apt-get install -y docker-ce ##### docker compose section ##### sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/ 1.11.2 /docker-compose-$(uname -s)-$(uname -m)" sudo chmod +x /usr/local/bin/docker-compose