diff --git a/_sync.sh b/_sync.sh index 95c1006..348389b 100755 --- a/_sync.sh +++ b/_sync.sh @@ -28,7 +28,7 @@ files=( "/usr/local/etc/smb4.conf:smb4.conf" "/etc/sysctl.conf:sysctl.conf" "/usr/local/bin/w_status:w_status" - "$HOME/debian.sh:docker.sh" + "$HOME/docker.sh:docker.sh" ) # create directories diff --git a/docker.sh b/docker.sh index e808040..ac4716d 100755 --- a/docker.sh +++ b/docker.sh @@ -1,3 +1,15 @@ -#!/bin/sh +#!/usr/bin/env bash +# Tool to set docker remote TCP daemon -chroot -n /compat/debian /bin/bash +docker_port="2375" +docker_default="srv-master" + +if [ -n "$1" ]; then + export DOCKER_HOST="tcp://$1:$docker_port" +else + export DOCKER_HOST="tcp://$docker_default:$docker_port" +fi + +# enter shell with new environment variables + +$SHELL