13 lines
249 B
Bash
13 lines
249 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
docker-do () { # Check if sudo needs to be used
|
||
|
if id -nG "$(whoami)" | grep -qw "docker"; then
|
||
|
docker $@
|
||
|
else
|
||
|
sudo docker $@
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
docker-do stop MsRewards
|
||
|
docker-do rm MsRewards
|
||
|
docker-do image rm msrewards
|