Sha256: 7cfdbe182067b9fed499a9b29310ad015b29aea9ae5f876e911bf49b7afcbabb
Contents?: true
Size: 808 Bytes
Versions: 1
Compression:
Stored size: 808 Bytes
Contents
#!/bin/bash -efu if [[ -n "${VAGRANT_LOG:-}" ]]; then set -x fi cmd="$1"; shift case "$cmd" in run-instance) image="$1"; shift cmd_bootstrap="$(which shell-docker-$image 2>&- || true)" if [[ -x "$cmd_bootstrap" ]]; then $cmd_bootstrap fi docker run -privileged -n -d -w /root -h "$(basename "$(pwd)")" "$image" "$@" ;; terminate-instance) instance="$1"; shift docker stop "$instance" ;; ssh-info) instance="$1"; shift echo "$(docker inspect -format '{{.NetworkSettings.IPAddress}}' $instance)" 22 ;; read-state) instance="$1"; shift case "$(docker inspect -format '{{.State.Running}}' $instance)" in true) echo running ;; *) echo not_created ;; esac ;; *) exit 1 ;; esac
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-shell-0.2.19 | libexec/shell-docker |