diff --git a/README.md b/README.md index 689dbbf..c3b81e2 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,8 @@ labels: # - flame.icon=custom to make changes in app. ie: custom icon upload ``` +And you must have activated the Docker sync option in the settings panel. + You can set up different apps in the same label adding `;` between each one. ```yml @@ -187,7 +189,28 @@ labels: - flame.icon=icon-name1;icon-name2 ``` -And you must have activated the Docker sync option in the settings panel. +If you want to use a remote docker host follow this instructions in the host: + +- Open the file `/lib/systemd/system/docker.service`, search for `ExecStart` and edit the value + +```text +ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:${PORT} -H unix:///var/run/docker.sock +``` + +>The above command will bind the docker engine server to the Unix socket as well as TCP port of your choice. “0.0.0.0” means docker-engine accepts connections from all IP addresses. + +- Restart the daemon and Docker service + +```shell +sudo systemctl daemon-reload +sudo service docker restart +``` + +- Test if it is working + +```shell +curl http://${IP}:${PORT}/version +``` ### Kubernetes integration diff --git a/client/src/components/Settings/OtherSettings/OtherSettings.tsx b/client/src/components/Settings/OtherSettings/OtherSettings.tsx index afaf072..bd9bf49 100644 --- a/client/src/components/Settings/OtherSettings/OtherSettings.tsx +++ b/client/src/components/Settings/OtherSettings/OtherSettings.tsx @@ -52,6 +52,7 @@ const OtherSettings = (props: ComponentProps): JSX.Element => { bookmarksSameTab: 0, searchSameTab: 0, dockerApps: 1, + dockerHost: 'localhost', kubernetesApps: 1, unpinStoppedApps: 1, }); @@ -72,6 +73,7 @@ const OtherSettings = (props: ComponentProps): JSX.Element => { bookmarksSameTab: searchConfig('bookmarksSameTab', 0), searchSameTab: searchConfig('searchSameTab', 0), dockerApps: searchConfig('dockerApps', 0), + dockerHost: searchConfig('dockerHost', 'localhost'), kubernetesApps: searchConfig('kubernetesApps', 0), unpinStoppedApps: searchConfig('unpinStoppedApps', 0), }); @@ -275,6 +277,17 @@ const OtherSettings = (props: ComponentProps): JSX.Element => { {/* DOCKER SETTINGS */}