This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/docker/setup-docker

14 lines
302 B
Plaintext
Raw Normal View History

2020-08-17 12:06:13 +02:00
#!/usr/bin/env bash
# From https://git.sr.ht/~xaffe/card-librarian
# Under GPL v3
# Enable bash strict mode
set -euo pipefail
IFS=$'\n\t'
sudo mount -t tmpfs -o size=4G /dev/null /dev/shm
sleep 2
2020-08-17 12:32:30 +02:00
sudo nohup dockerd --bip 172.200.0.1/16 </dev/null >/dev/null 2>&1 &
2020-08-17 12:06:13 +02:00
sudo usermod -aG docker $(whoami)