Configuring docker daemon used by windmill
Hi,
I've attempted to configure the host daemon.json and ensure that /var/docker folder is mounted to windmill... but it doesn't seem to take effect.
Can anyone shed some light on this?
I'm trying to have it ignore no ssl's certs for my internel network while testing..
Any help appreciated.
Cheers,
11 Replies
Could you please elaborate more on what you're trying and what issues you're having?
Hi @Tiago Serafim I'm trying to login to my internal docker registry that currently doesn't have certs setup yet. That causes docker to throw an error on login
tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match docker.laidback.systems"
Get "https://docker.mydomain.net/v2/": tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match docker.mydomain.net
so in the mean time I'd like to configure the docker daemon to ignore SSL errors
this is on the host machineOh, I've never done that, and it's unrelated from Windmill, but maybe the AI can help with that, I tried chatgpt here and it says that you have to change a different file
For Ubuntu, you need to edit the /etc/default/docker file to include the DOCKER_OPTS variable with the --insecure-registry flag followed by the IP address and port of your registry
ah ok yea didnt think there was another setting to try
thanks mate - will take a look
ok So I updated that file
I can do a docker login on the host
but can't docker login from inside a windmill script
Also tried exec into the windmill container and I get the cert error there to.
Maybe that config is in the client? So you'd have to change the config of the docker client that is backed in Windmill's image
I'd try to use the INIT_SCRIPT config to change the config using some sort of
sed
replace.
First ssh into the container and change there to see if it works, then try the init_scriptit should be the daemon, but I volume mounted both configuration files and nada
it's bit odd but it's probably not worth burning much more time on
thanks for your help though, I'll just wait till i can get this cert sorted
Did you restart the workers after changing the configs?
hm i restarted docker hmm
how do i restart workers?
i think i restarted windmill too
I'm not sure how to do that programmatically
Or from the UI
yea i just restarted the whole windmill container
But there are three containers, at least, the server, and both workers.