Job for rvice failed because the control process exited with error code. # Enable /etc/default/docker configuration files with SystemdĮxecStart=/usr/bin/dockerd -H fd:// $OPTS If thenĮcho "Configuring systemd to use /etc/default/docker "Ĭat $SYSTEMD_DOCKER_DIR/nf SYSTEMD_DOCKER_DIR= "/etc/systemd/system/ " Grep -v "^ *DOCKER_OPTS " $DOCKER_INIT > $TEMP_FILEĮcho DOCKER_OPTS= \"-bip= $NEW_IP \" > $TEMP_FILEĮcho "WARNING: The existing DOCKER_OPTS were overwritten in $DOCKER_INIT: "Įcho DOCKER_OPTS= \"-bip= $NEW_IP \" > $DOCKER_INITĮcho "Success: $DOCKER_INIT has been modified. NETWORKS= $(ip addr list docker0 | grep "inet " | cut -d " " -f6 )ĬURRENT_OPTS= $(cat $DOCKER_INIT | grep "^ *DOCKER_OPTS " | sed 's/^/ /g ' ) #export TMPDIR="/mnt/bigdrive/docker-tmp"Įcho "Created a new Docker default file at $DOCKER_INIT " # This is also a handy place to tweak where Docker's temporary files go. # If you need Docker to use an HTTP proxy, it can also be specified here. # Use DOCKER_OPTS to modify the daemon startup options. # Customize location of Docker binary (especially for development testing).
# Docker Upstart and SysVinit configuration file "Įcho " When you restart it, Docker will use the new IP. configure_docker0.sh 192.168.254.1/24 "Įcho " NOTE: You should stop Docker before running this script. # NOTE: This script is intended for Debian / Ubuntu only!Įcho "Usage: sudo. # * Make sure you replace "192.168.254.1/24" with the network that you want to use # You can run this script directly from github as root like this: # Here is an example configuration that sets the docker0 bridge IP to 192.168.254.1/24: # a version of Docker that is at least 1.10! You should use this JSON config method if you are running On Linux, this file is normally located at # Docker daemon using a JSON config file. # NOTE: Since Docker 1.10 (February 4, 2016), it has been possible to configure the