8 lines
175 B
Bash
Executable File
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
|