Skip to content

Commit

Permalink
fix(env): 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 f49f576
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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_HOST unix:///var/run/docker.sock
ENV HOME /root

WORKDIR /home/shell
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ services:
ports:
- 8080
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /var/run/docker.sock:/var/run/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

0 comments on commit f49f576

Please sign in to comment.