8 lines
175 B
Bash
8 lines
175 B
Bash
|
#!/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
|