traefik permissions 777 for acme.json are too open, please use 600 traefik permissions 777 for acme.json are too open, please use 600 docker docker

traefik permissions 777 for acme.json are too open, please use 600


I did finally find the solution thanks to Cooshals kind help,

we have to ssh into the virtualbox-machine and make the file there, and then point it out right from the docker-compose.yml, in this case I did like this:

docker-machine ssh defaulttouch /var/acme.jsonchmod 600 /var/acme.json

Then in my docker-compose:

volumes: - /var/:/var/acme.json

Finally in traefik.toml:

[acme]  storage = "acme.json"


In addition to the above answer, to automate the creation of the acme.json file and assign the required permissions, create a Dockerfile and call it in your docker.compose.yml

FROM traefik:2.2RUN touch /acme.json \  && chmod 600 /acme.json


This just solved it for me:

  1. Have WSL2 installed in Windows 10
  2. Use PowerShell and navigate to the directory where your acme.json file is
  3. Type wsl, this wil open the same location but now from WSL2
  4. Type chmod 600 acme.json
  5. Done!