Last active
December 29, 2023 17:43
-
-
Save MeenachiSundaram/6ffbbe38a072b94ad8d695d49d977ef7 to your computer and use it in GitHub Desktop.
startup script for installing docker in GCP
This file contains hidden or 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
#!/bin/bash | |
apt-get update | |
apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt-get update | |
apt-get install -y docker-ce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After installation of docker add user
docker run hello-world