11 lines
275 B
Bash
Executable File
11 lines
275 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
if [ "$EUID" != '0' ]; then
|
|
echo 'error: you cannot perform this operation unless you are root.'
|
|
exit 1
|
|
fi
|
|
|
|
systemctl start docker
|
|
docker run -it --rm --name epitest -v "$PWD":/tmp epitechcontent/epitest-docker:latest /bin/bash
|
|
systemctl stop docker
|