mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 17:26:55 +08:00
dogo supports zsh/bash/sh; doll is introduced to launch a new docker container; update $SUDO in command.sh
11 lines
242 B
Bash
Executable File
11 lines
242 B
Bash
Executable File
#!/bin/bash
|
|
|
|
THIS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )
|
|
source "$THIS_DIR/../tools/common.sh"
|
|
|
|
if [[ -z "$1" || "$1" =~ "-h|--help" ]]; then
|
|
fmt_info "usage: $0 <image>"
|
|
else
|
|
$SUDO docker run -itd $1 sh
|
|
fi
|