Domino on Linux/Unix, Troubleshooting, Best Practices, Tips and more ...

alt

Daniel Nashed

Running docker remotely

Daniel Nashed – 28 April 2022 21:19:16

This is quite cool! Docker client and server can be on different machines.
There was recently an exploit when you use TCP/IP connections.

But there are a lot of other options. In my case a SSH connection made sense.

My old macbook can't run a current Docker host. But I wanted to use it at least to test all my scripts.
I downloaded the latest docker client and configured a remote connection.

This allows to test all my scripts on my old macbook, running the build process on a remote machine.
You just need to configure a SSH key, add your remote user to the "docker" group and with a simple export, I tell my macbook where my Docker host is located.


export DOCKER_HOST=ssh://notes@192.168.99.100


This is very helpful in my case and can also be helpful if you want to run Docker commands from your local machine to a remote hosted server.


See the Docker documentation for details -->
https://docs.docker.com/engine/security/protect-access/

-- Daniel


Links

    Archives


    • [HCL Domino]
    • [Domino on Linux]
    • [Nash!Com]
    • [Daniel Nashed]