Files
oam/snippets/raspberry pi os/docker.install.bash

11 lines
227 B
Bash
Executable File

#!/usr/bin/env bash
set -e
sudo curl -fsSL 'https://get.docker.com' | sh -
sudo usermod -aG 'docker' "$USER"
# logout && login to apply the new status
docker run --rm --name 'test' 'hello-world' && docker rmi 'hello-world'