Docker Server Configuration: Difference between revisions
Jump to navigation
Jump to search
(→Mac) |
|||
Line 35: | Line 35: | ||
The "Basic" section has UI elements to configure [[Docker_Server_Configuration#--insecure-registry|insecure registries]] and registry mirrors. | The "Basic" section has UI elements to configure [[Docker_Server_Configuration#--insecure-registry|insecure registries]] and registry mirrors. | ||
The "Advanced" section gives access to the content of | The "Advanced" section gives access to the content of [[/etc/docker/daemon.json|daemon.json]] file, which can be edited freely. However, the danger is that a configuration error saved here will prevent the daemon to start. If that happens, the file-system version of the same file can be accessed as follows: | ||
cd ~/Library/Containers/com.docker.docker/Data/database | cd ~/Library/Containers/com.docker.docker/Data/database |
Revision as of 20:09, 20 April 2018
External
Internal
Overview
Server Configuration Options
--insecure-registry
Enable insecure registry communication (default [])
... --insecure-registry <list> ...
The same option can be configured in daemon.json with insecure-registries.
--net
Also see
OS-Dependent Details
RedHat/Centos
Ubuntu
Mac
The simples possible way to configure the Docker daemon on Mac is to use the UI: the whale icon-> Preferences -> Daemon.
The "Basic" section has UI elements to configure insecure registries and registry mirrors.
The "Advanced" section gives access to the content of daemon.json file, which can be edited freely. However, the danger is that a configuration error saved here will prevent the daemon to start. If that happens, the file-system version of the same file can be accessed as follows:
cd ~/Library/Containers/com.docker.docker/Data/database git reset --hard HEAD
The daemon.json becomes available as:
~/Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux/etc/docker/daemon.json
The file can be edited and committed, and the daemon restart.