mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 11:25:40 +00:00
fix hostname setting
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
0dbb3c52e1
commit
9588a5e930
@ -11,7 +11,7 @@ start() {
|
|||||||
opts="docker"
|
opts="docker"
|
||||||
if cat /proc/cmdline | grep -q 'com.docker.database'
|
if cat /proc/cmdline | grep -q 'com.docker.database'
|
||||||
then
|
then
|
||||||
DATABASE="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.database="//' -e 's/".*//')"
|
DATABASE="$(cat /proc/cmdline | sed -e 's/.*com.docker.database="//' -e 's/".*//')"
|
||||||
HOSTFILE="/Database/branch/master/ro/${DATABASE}/hostname"
|
HOSTFILE="/Database/branch/master/ro/${DATABASE}/hostname"
|
||||||
[ -s ${HOSTFILE} ] && opts="-F ${HOSTFILE}"
|
[ -s ${HOSTFILE} ] && opts="-F ${HOSTFILE}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user