2015-08-06 01:26:34 +02:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2015-08-18 02:00:58 +02:00
|
|
|
DOCKER_GRAPHDRIVER=${DOCKER_GRAPHDRIVER:-overlay}
|
|
|
|
EXEC_DRIVER=${EXEC_DRIVER:-native}
|
|
|
|
|
2015-08-06 01:26:34 +02:00
|
|
|
# Set IP address in /etc/hosts for localregistry
|
|
|
|
IP=$(ifconfig eth0|grep "inet addr:"| cut -d: -f2 | awk '{ print $1}')
|
|
|
|
echo "$IP localregistry" >> /etc/hosts
|
|
|
|
|
|
|
|
sh install_certs.sh localregistry
|
|
|
|
|
2015-08-18 02:00:58 +02:00
|
|
|
docker --daemon --log-level=panic \
|
2015-08-06 01:26:34 +02:00
|
|
|
--storage-driver="$DOCKER_GRAPHDRIVER" --exec-driver="$EXEC_DRIVER"
|