Add docker setup script
This commit is contained in:
parent
d535327b5b
commit
600327e070
1 changed files with 13 additions and 0 deletions
13
docker/setup-docker
Normal file
13
docker/setup-docker
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/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
|
||||||
|
sudo nohup dockerd --bip 172.18.0.1/16 </dev/null >/dev/null 2>&1 &
|
||||||
|
sudo usermod -aG docker $(whoami)
|
Reference in a new issue