Skip to content

Instantly share code, notes, and snippets.

@rabiayilmazz
Last active July 3, 2023 04:51
Show Gist options
  • Save rabiayilmazz/c1222153f813bdf2678b2f8a1e068eb9 to your computer and use it in GitHub Desktop.
Save rabiayilmazz/c1222153f813bdf2678b2f8a1e068eb9 to your computer and use it in GitHub Desktop.
container engie bash script
#!/bin/bash
# Update the package manager
sudo apt-get update
# Install dependencies
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
# 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
# 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
# Update the package manager with the new repository
sudo apt-get update
# Install Docker Engine
sudo apt-get install docker-ce docker-ce-cli containerd.io
# Verify that Docker Engine is installed correctly by running a hello-world container
sudo docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment