This commit is contained in:
thek4n 2023-12-12 11:28:56 +03:00
parent 7f65ebc8b1
commit 7f50455536
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
# useradd -md /home/sandbox -s /opt/bin/alpine sandbox
# usermod -aG docker sandbox
exec docker run --rm -it alpine

5
opt/bin/sandbox Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# useradd -md /home/sandbox -s $0 sandbox
# usermod -aG docker sandbox
# echo "$0" | sudo tee -a /etc/shells # for pam
exec docker run --rm -it --name sandbox --network none alpine