Commit 3121a4bc authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

add shell -r (to run as root)

parent b723bdba
#!/bin/bash
if [ "$1" = "-r" ] ; then
shift
user="-u root"
else
user=
fi
CTR="$1"
if [ -z "$CTR" ] ; then
......@@ -9,4 +16,4 @@ fi
set -ex
fig up -d "$CTR"
docker exec -t -i -- "$CTR" /bin/bash
docker exec -t -i $user -- "$CTR" /bin/bash
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment