From 1ba2c7962db897882ce78bc8d4e2959f8555d16e Mon Sep 17 00:00:00 2001 From: Jason-ZW Date: Tue, 15 Nov 2022 13:16:42 +0800 Subject: [PATCH] fix(feat): Add DOCKER_HOST env Signed-off-by: Jason-ZW --- Dockerfile | 1 + docker-compose.yaml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ddc8020d..67a8454c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,7 @@ RUN curl -sSL https://github.com/cnrancher/kube-explorer/releases/download/${KUB chmod +x /usr/local/bin/kube-explorer ENV AUTOK3S_CONFIG /root/.autok3s +ENV DOCKER_HOSTS unix:///var/run/docker.sock ENV HOME /root WORKDIR /home/shell diff --git a/docker-compose.yaml b/docker-compose.yaml index 598b152b..e1118a87 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,5 +15,6 @@ services: - /var/run/docker.sock:/tmp/docker.sock:ro - $HOME/.autok3s/:$HOME/.autok3s/ environment: - - AUTOK3S_CONFIG=$HOME/.autok3s/ - - VIRTUAL_HOST=autok3s.vcap.me + - AUTOK3S_CONFIG=$HOME/.autok3s/ + - VIRTUAL_HOST=autok3s.vcap.me + - DOCKER_HOST=unix:///tmp/docker.sock