mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-05 15:26:33 +00:00
5401bd67c6
This is a large, 2.8GB image, but doable!
20 lines
520 B
Bash
Executable File
20 lines
520 B
Bash
Executable File
#! /bin/bash
|
|
|
|
image_name=devenv-$(whoami)
|
|
container_name=$image_name-run
|
|
|
|
if ! docker inspect "$container_name" > /dev/null ; then
|
|
echo "start new"
|
|
docker run -it \
|
|
--hostname="$(hostname)-docker" \
|
|
--env SSH_CLIENT=true \
|
|
--env TERM_PROGRAM="$TERM_PROGRAM" \
|
|
--env ITERM_PROFILE="$ITERM_PROFILE" \
|
|
--volume /:/host \
|
|
--name "$container_name" \
|
|
"$image_name" fish
|
|
else
|
|
echo "start existing"
|
|
docker start --attach --interactive "$container_name"
|
|
fi
|