broccoli-cli/ubuntu/docker.sh
2024-06-21 20:02:39 +00:00

8 lines
175 B
Bash
Executable File

#!/bin/bash
if [[ $1 == "start" ]]; then
docker run -i --rm -d -v $(pwd):/host --name "ubuntu" -e DISPLAY=$DISPLAY ubuntu:latest
else
docker exec -it "ubuntu" /bin/bash
fi