docker-cloudflare
docker-cloudflare copied to clipboard
Add docker manifest so people can just use :latest regardless of platform
~~Any chance you can support for this in the build? I don't think anything else is needed to change except the action that builds it.~~
Bonus points if you also add a image manifest so we can just use joshava/cloudflare-ddns:latest
regardless of architecture :)
edit: I am a dum dum and didn't change to the right tag so changing title to the 2nd part of this.
I will take a look in this week.
After a bunch of testing, I got it built. The new code it on docker branch.
A test image is uploaded to DockerHub. @pegasy can you try joshava/cloudflare-ddns-test
to see if it works or not.
I'm running Docker on a raspberry pi 4 B, and tried to use the 'test' container above. Cloudflare didn't get an updated record, but I'm not sure if it's a configuration file issue, docker issue, or what. Any troubleshooting tips/logs?
@Coder84619 docker logs <container>
should print the stdout.
If it prints nothing, try docker exec -it <container> /bin/sh
which will enter the container with a interactive session (use exit
to exit the session). Try to run node /app/lib/index.js
in the container.
Forgive me, but I'm brand new to Docker so I'm probably doing something stupid. But I can't get the logs or the /bin/sh sessions to work. I get a 'no such container' each time:
docker exec -it joshava/cloudflare-ddns-test /bin/sh docker logs joshava/cloudflare-ddns-test
Any help would be appreciated!
@Coder84619 You should use the container name or container ID instead of image name.
Container name can be get from docker ps
. It will show all running containers. If it does not show up, use docker ps -a
to show all of them.
You should see something like the following.
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9c3527ed70ce busybox "top" 14 seconds ago Up 15 seconds desperate_dubinsky
Gotcha! Now I get:
pi@raspberrypi:/app $ docker exec -it reverent_kalam /bin/sh OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec format error": unknown
Issues are closed after 30 days of inactivity. It’s been at least 20 days since the last update here.
Issues are closed after 30 days of inactivity. It’s been at least 20 days since the last update here.