Manage docker remotely
本文最后更新于:2024年8月9日 晚上
Why I’m doing this?
I just want to have a docker environment and I don’t want installed it on my machine,sometime is too huge to install docker on workstation machines(install docker desktop
on macOS will at latest 4GB Storage and take some memory). macOS don’t have docker cli service only have desktop which I don’t want to have a GUI.
At meanwhile I have docker installed on my remote server, I’m thinking what if we manage remote docker
just like kubectl
, the fact is this is workable. So let’s get started:
Remote Server
1 |
|
Client
1 |
|
This is just a test environment for test purpose, for production we have to configure TLS to make sure the communication between client and server is secure.
Here is an example of tutorial how how to configure it with ssl certificate.