fix docker script
This commit is contained in:
parent
30f6d76f61
commit
4552266682
2 changed files with 15 additions and 3 deletions
2
_sync.sh
2
_sync.sh
|
|
@ -28,7 +28,7 @@ files=(
|
||||||
"/usr/local/etc/smb4.conf:smb4.conf"
|
"/usr/local/etc/smb4.conf:smb4.conf"
|
||||||
"/etc/sysctl.conf:sysctl.conf"
|
"/etc/sysctl.conf:sysctl.conf"
|
||||||
"/usr/local/bin/w_status:w_status"
|
"/usr/local/bin/w_status:w_status"
|
||||||
"$HOME/debian.sh:docker.sh"
|
"$HOME/docker.sh:docker.sh"
|
||||||
)
|
)
|
||||||
|
|
||||||
# create directories
|
# create directories
|
||||||
|
|
|
||||||
16
docker.sh
16
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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue