Skip to content

Instantly share code, notes, and snippets.

View PedroPini's full-sized avatar

Pedro PedroPini

View GitHub Profile
@PedroPini
PedroPini / Run Docker commands without sudo
Last active June 14, 2021 01:43
Run Docker commands without sudo
#!/bin/bash
#Add the docker group if it doesn't already exist
sudo groupadd docker
#Add the connected user $USER to the docker group
sudo gpasswd -a $USER docker
@PedroPini
PedroPini / Installing Docker and Docker compose on ubuntu
Last active June 14, 2021 01:43
Installing Docker and Docker compose on ubuntu
#!/bin/bash
# Installing Docker
#First, update your existing list of packages:
sudo apt update
#Next, install a few prerequisite packages which let apt use packages over HTTPS:
sudo apt install apt-transport-https ca-certificates curl software-properties-common