Description
Description
Thanks for this great API, works great for us. It has helped us tons in our project https://github.com/zalando/zalenium
I have not really checked it in a while, but now I see that when I create a container, there is some verbose logging with the container config.
This is not creating any issues in our app, but this may confuse the users. I can see that the logger is always outputting this via log.info()
, ass seen here. Is this the expected behaviour? If so, that's ok, maybe I am missing an option on how to change the log level. If it is not the expected one, I'd be happy to send a PR to change the log level do debug
or something similar.
How to reproduce
Just create a container.
What do you expect
Not this level of verbosity, or a way to config the log level for the docker-client.
What happened instead
Log is verbose when creating containers.
Software:
docker version
: Docker version 17.09.0-ce, build afdb6d4 (both client and server)- Spotify's docker-client version: v8.9.1
Full backtrace
....2017-10-26 08:00:38 INFO DefaultDockerClient:645 - Creating container with ContainerConfig: ContainerConfig{hostname=null, domainname=null, user=null, attachStdin=null, attachStdout=null, attachStderr=null, portSpecs=null, exposedPorts=[40001, 50001], tty=null, openStdin=null, stdinOnce=null, env=[SEL_NODEPOLLING_MS=109000, SEND_ANONYMOUS_USAGE_INFO=false, SELENIUM_HUB_HOST=172.17.0.2, SELENIUM_NODE_CH_PORT=40001, TZ=Europe/Berlin, GRID=false, NOVNC_PORT=50001, VIDEO_STOP_SLEEP_SECS=1, CHROME=true, SELENIUM_NODE_REGISTER_CYCLE=0, WAIT_TIME_OUT_VIDEO_STOP=20s, FIREFOX=false, ZALENIUM=true, SELENIUM_NODE_HOST={{CONTAINER_IP}}, PICK_ALL_RANDOM_PORTS=false, BUILD_URL=, VNC_PORT=60001, SCREEN_HEIGHT=1080, WAIT_TIMEOUT=120s, SELENIUM_HUB_PORT=4445, SCREEN_WIDTH=1920, SELENIUM_NODE_PROXY_PARAMS=de.zalando.ep.zalenium.proxy.DockerSeleniumRemoteProxy, NOVNC=true], cmd=null, image=elgalu/selenium:3.6.0, volumes={}, workingDir=null, entrypoint=null, networkDisabled=null, onBuild=null, labels=null, macAddress=null, hostConfig=HostConfig{binds=[/dev/shm:/dev/shm], blkioWeight=null, blkioWeightDevice=null, blkioDeviceReadBps=null, blkioDeviceWriteBps=null, blkioDeviceReadIOps=null, blkioDeviceWriteIOps=null, containerIdFile=null, lxcConf=null, privileged=true, portBindings={40001=[PortBinding{hostIp=, hostPort=40001}], 50001=[PortBinding{hostIp=, hostPort=50001}]}, links=null, publishAllPorts=null, dns=null, dnsOptions=null, dnsSearch=null, extraHosts=[mac.host.local:192.168.65.1], volumesFrom=null, capAdd=null, capDrop=null, networkMode=default, securityOpt=null, devices=null, memory=null, memorySwap=null, memorySwappiness=null, memoryReservation=null, nanoCpus=null, cpuPeriod=null, cpuShares=null, cpusetCpus=null, cpusetMems=null, cpuQuota=null, cgroupParent=null, restartPolicy=null, logConfig=null, ipcMode=null, ulimits=null, pidMode=null, shmSize=null, oomKillDisable=null, oomScoreAdj=null, autoRemove=true, pidsLimit=null, tmpfs=null, readonlyRootfs=null, storageOpt=null}, stopSignal=null, healthcheck=null, networkingConfig=null}
2017-10-26 08:00:38 INFO DefaultDockerClient:645 - Creating container with ContainerConfig: ContainerConfig{hostname=null, domainname=null, user=null, attachStdin=null, attachStdout=null, attachStderr=null, portSpecs=null, exposedPorts=[40000, 50000], tty=null, openStdin=null, stdinOnce=null, env=[SEL_NODEPOLLING_MS=119000, SEND_ANONYMOUS_USAGE_INFO=false, SELENIUM_NODE_FF_PORT=40000, SELENIUM_HUB_HOST=172.17.0.2, TZ=Europe/Berlin, GRID=false, NOVNC_PORT=50000, VIDEO_STOP_SLEEP_SECS=1, CHROME=false, SELENIUM_NODE_REGISTER_CYCLE=0, WAIT_TIME_OUT_VIDEO_STOP=20s, FIREFOX=true, ZALENIUM=true, SELENIUM_NODE_HOST={{CONTAINER_IP}}, PICK_ALL_RANDOM_PORTS=false, BUILD_URL=, VNC_PORT=60000, SCREEN_HEIGHT=1080, WAIT_TIMEOUT=120s, SELENIUM_HUB_PORT=4445, SCREEN_WIDTH=1920, SELENIUM_NODE_PROXY_PARAMS=de.zalando.ep.zalenium.proxy.DockerSeleniumRemoteProxy, NOVNC=true], cmd=null, image=elgalu/selenium:3.6.0, volumes={}, workingDir=null, entrypoint=null, networkDisabled=null, onBuild=null, labels=null, macAddress=null, hostConfig=HostConfig{binds=[/dev/shm:/dev/shm], blkioWeight=null, blkioWeightDevice=null, blkioDeviceReadBps=null, blkioDeviceWriteBps=null, blkioDeviceReadIOps=null, blkioDeviceWriteIOps=null, containerIdFile=null, lxcConf=null, privileged=true, portBindings={50000=[PortBinding{hostIp=, hostPort=50000}], 40000=[PortBinding{hostIp=, hostPort=40000}]}, links=null, publishAllPorts=null, dns=null, dnsOptions=null, dnsSearch=null, extraHosts=[mac.host.local:192.168.65.1], volumesFrom=null, capAdd=null, capDrop=null, networkMode=default, securityOpt=null, devices=null, memory=null, memorySwap=null, memorySwappiness=null, memoryReservation=null, nanoCpus=null, cpuPeriod=null, cpuShares=null, cpusetCpus=null, cpusetMems=null, cpuQuota=null, cgroupParent=null, restartPolicy=null, logConfig=null, ipcMode=null, ulimits=null, pidMode=null, shmSize=null, oomKillDisable=null, oomScoreAdj=null, autoRemove=true, pidsLimit=null, tmpfs=null, readonlyRootfs=null, storageOpt=null}, stopSignal=null, healthcheck=null, networkingConfig=null}