Created
May 18, 2021 14:06
-
-
Save barryvdh/5c97a71559e5b0d24a708f6eff6eebcc to your computer and use it in GitHub Desktop.
Install Docker on Laravel Force Recipe
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
echo ">> Follow install based on https://docs.docker.com/engine/install/ubuntu/" | |
echo ">> Update the apt package index and install packages to allow apt to use a repository over HTTPS:" | |
apt-get update | |
apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
echo ">> Add Docker’s official GPG key:" | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "Use the following command to set up the stable repository:" | |
echo \ | |
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
echo "Update the apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version:" | |
apt-get update | |
apt-get -y install docker-ce docker-ce-cli containerd.io | |
echo "Verify that Docker Engine is installed correctly by running the hello-world image." | |
docker run hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment