I like working on the Linux ecosystem. I love the console and stuff I can do with shell scripts etc. I love it even more with docker – perfect stuff for quick evaluation of new tool or just newer version of beloved one – just do “docker search ” and then just pull or run the stuff of your choice.
Unfortunately, at work, I’m stuck on Windows and in addition, IT is doing ‘MitM’ cert mangling.
I could easily get rid of Windows just by installing VirtualBox and Linux inside it but then “docker search” hit “x509: certificate signed by unknown authority” error.
ok then … but if I can access the page via the browser then it means that from console I should be able to do so, and maybe just docker doesn’t know which cert to use …
you can fix it by following these steps:
szekar@szekar-vb:~$ sudo mkdir -p /etc/docker/certs.d/docker.io:5000
szekar@szekar-vb:~$ ls -ltr /etc/docker/certs.d/docker.io\:5000/
szekar@szekar-vb:~$ sudo cp path_to_your_certs/* /etc/docker/certs.d/docker.io\:5000/
after these small adjustments:
szekar@szekar-vb:~$ docker search hello-world
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
hello-world Hello World! (an example of minimal Docker... 489 [OK]
szekar@szekar-vb:~$ docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
ca4f61b1923c: Pull complete
Status: Downloaded newer image for hello-world:latest
szekar@szekar-vb:~$ docker images |grep hello
hello-world latest f2a91732366c 4 months ago 1.85 kB
And now my Linux VM is even more useful.