Closed dougburks closed 4 years ago
This script creates a /etc/daemon/docker.json with default configuration as follows:
{
"bip": "172.17.0.1/24"
}
On some boxes, this file is causing docker to fail. Removing the file allows docker to start.
One option would be to update /usr/sbin/so-elastic-configure-network such that it checks to see if /etc/daemon/docker.json exists and has an MD5 of 0bcf8587dea814c9b712064c28da3d82
. If so, remove the file. If not, then the user has modified the file and it should be retained. Additionally, /usr/sbin/so-elastic-configure-network can continue to include the code that updates /etc/daemon/docker.json with the DOCKER_BRIDGE
from /etc/nsm/securityonion.conf
(but only if it doesn't match the MD5 above).
Looks good 👍
https://github.com/docker/for-linux/issues/165
https://forums.docker.com/t/systemctl-start-docker-fails-with-bip-solved/74214