Closed osorito closed 2 months ago
To make it work made following changes.
sudo cat /etc/docker/daemon.json
{
"log-driver": "syslog",
"log-level": "info",
"iptables": true,
"insecure-registries": [],
"live-restore": true,
"userland-proxy": false,
"tls": true,
"tlscacert": "/etc/docker/certs.d/ca.pem",
"tlscert": "/etc/docker/certs.d/server_cert.pem",
"tlskey": "/etc/docker/certs.d/server_key.pem",
"hosts": ["tcp://0.0.0.0:2376","unix:///var/run/docker.sock"]
}
sudo cat /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --tlsverify --no-new-privileges --icc=false --userns-remap=default --default-ulimit nproc=1024:2048 --default-ulimit nofile=100:200 --containerd=/run/containerd/containerd.sock
[+] Containers
------------------------------------
- Docker
- Docker daemon [ RUNNING ]
- Docker info output (warnings) [ NONE ]
- Containers
- Total containers [ 0 ]
- File permissions [ OK ]
Thanks for sharing and especially the detailed troubleshooting. Good to see it is working with the changes that you made.
Describe the bug A clear and concise description of what the bug is.
Lynis hangs up if I run the test with tls enabled in /etc/docker/daemon.json
To install Lynis
Docker daemon configuration /etc/docker/daemon.json
Add this to ~/.bashrc
export DOCKER_HOST=tcp://127.0.0.1:2376 DOCKER_TLS_VERIFY=1
Result of docker versionStatus of docker
The logs stop here
If I remove the tls lines from configuration this is the result in container side.
node@Blaze:~$ sudo cat /etc/docker/daemon.json
Comment ~/.bashrc
#export DOCKER_HOST=tcp://127.0.0.1:2376 DOCKER_TLS_VERIFY=1
run
The report works.
After the change, if I return /etc/docker/daemon.json to how it was and un comment ~/.bashrc source bash, reload the daemon, restart the service
This is the output
Version
Expected behavior A clear and concise description of what you expected to happen.
The test should run with or without tls enable on /etc/docker/daemon.json
The code that get stuck is here
What the test is doing is the same I do in console docker version 2>&1
Output If applicable, add output that you get from the tool or the related section of lynis.log
Additional context Add any other context about the problem here.