Skip to content

Instantly share code, notes, and snippets.

@CSpyridakis
Last active May 14, 2024 10:23
Show Gist options
  • Select an option

  • Save CSpyridakis/0dd4e045dcddc68496c8403c098e0c19 to your computer and use it in GitHub Desktop.

Select an option

Save CSpyridakis/0dd4e045dcddc68496c8403c098e0c19 to your computer and use it in GitHub Desktop.
Install docker script
#!/bin/bash
# Run it like this:
# bash <(curl -sL https://gist.githubusercontent.com/CSpyridakis/0dd4e045dcddc68496c8403c098e0c19/raw/0fda1a194f559b05d6e26311c54090abe0cba4ca/install-docker.sh)
# Install docker
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
# ------------------------------------------------
# POST INSTALLATION ACTIONS (see: https://docs.docker.com/engine/install/linux-postinstall/)
# Create the docker group if not exist
sudo groupadd docker
# Add your user to the docker group.
sudo usermod -aG docker $USER
# Activate the changes to groups
newgrp docker
# Verify that you can run docker commands without sudo
docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment