Skip to content

Commit

Permalink
fix(feat): Add DOCKER_HOST env
Browse files Browse the repository at this point in the history
Signed-off-by: Jason-ZW <[email protected]>
  • Loading branch information
rancher-sy-bot committed Nov 15, 2022
1 parent 737a421 commit 1ba2c79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1ba2c79

Please sign in to comment.