Skip to content

Coleganet/Daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Daemon Desktop with Ranger Desktop

Create on Rancher Desktop witch a Docker-Desktop Daemon

INSTRUCTIONS

1.- Deactivate traefik in rancher desktop and the spining . 2.- Create docker compose file OR Download from HERE 3.- copy and paste the next

version: "3.3"
services:
  traefik:
    image: "traefik:v3.1"
    container_name: "traefik"
    command:
      #- "--log.level=DEBUG"
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entryPoints.web.address=:80"
    ports:
      - "80:80"
      - "8080:8080"
    extra_hosts:
      - "host.docker.internal:host-gateway"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"

  whoami:
    image: "traefik/whoami"
    container_name: "simple-service"
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.whoami.rule=Host(`whoami.localhost`)"
      - "traefik.http.routers.whoami.entrypoints=web"
	  

done now you just start with

docker compose up -d

look always your new traefik container is Online and the new Web container from traefik . the script create 2 containers. Please setup or issues use the Discussions here

The trick is you have this Lines

 extra_hosts:
      - "host.docker.internal:host-gateway"

Us root look in C:\Windows\System32\drivers\etc and edit the hosts file , (Make a copy of the file in case before anything) Add them the next when the IP is the IP of your Rancher Desktop . Just check your Ip before anything

Added Docker Desktop TO Windows Host

172.20.0.3 host.docker.internal

172.20.0.3 gateway.docker.internal

save and exit from Rancher Desktop / Reboot Windows Now Traefik is indeed working again just go to http://localhost:8080/dashboard/#/ and the best the daemon of docker desktop is exposed Not need for any ports setup or any modifications that work perfect in any port or ip your external app or service will get Rancher Desktop

In case Docker complaint the File version is old delete the first line said: version: "3.3"

The file dockerdesktop.yml is just for install trefik no daemon add

Follow on Pi forum

https://fireside.pinet.com/posts/6705163386a83f004130af30

About

Create on Rancher Desktop a Docker-Desktop Daemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published