broccoli-cli/ubuntu/docker.sh

8 lines
175 B
Bash
Raw Permalink Normal View History

2024-06-21 16:02:39 -04:00
#!/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