-
Notifications
You must be signed in to change notification settings - Fork 14
Docker usage
sineverba edited this page Feb 20, 2022
·
10 revisions
Pull from Docker Hub (you really don't need to use latest but you must use a specific version. This is the better method to work with Docker image)
$ docker pull sineverba/cfhookbashMake a first run, it will auto-register and will create the correct directories and files:
$ docker run -it --rm -v $(pwd)/data:/app/dehydrated --name cfhookbash sineverba/cfhookbash:latestEdit required files
data/configdata/config.shdata/domains.txt
Rerun it:
$ docker run -it --rm -v $(pwd)/data:/app/dehydrated --name cfhookbash sineverba/cfhookbash:latestPass the ENV VAR FORCE_RENEW=TRUE (caps lock for TRUE)
$ docker run -it --rm -v $(pwd)/data:/app/dehydrated -e FORCE_RENEW=TRUE --name cfhookbash sineverba/cfhookbash:latestIf you launch docker with stage url, removing it LE blocks you, requesting to re-register. Simply delete the data/accounts folder and relaunch (2 times) the docker.
$ sudo crontab -e
Every monday, at 01:12
12 1 * * 1 docker run --rm -v /home/sineverba/cfhookbash/data:/app/dehydrated sineverba/cfhookbash:latest >> /home/sineverba/cfhookbash-log-cron-`date +\%Y-\%m-\%d-\%H-\%M-\%S`.log 2>&1If you have issues with Alpine version on Raspberry, try this:
$ wget https://ftp.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.1-1_armhf.deb
$ sudo dpkg -i libseccomp2_2.5.1-1_armhf.deb
$ rm libseccomp2_2.5.1-1_armhf.deb