docker-cloudflare icon indicating copy to clipboard operation
docker-cloudflare copied to clipboard

Add docker manifest so people can just use :latest regardless of platform

Open pegasy opened this issue 4 years ago • 9 comments

~~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.

pegasy avatar Sep 22 '19 17:09 pegasy

I will take a look in this week.

joshuaavalon avatar Sep 25 '19 01:09 joshuaavalon

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.

Build log

joshuaavalon avatar Sep 26 '19 06:09 joshuaavalon

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 avatar Oct 06 '19 10:10 Coder84619

@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.

joshuaavalon avatar Oct 07 '19 06:10 joshuaavalon

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 avatar Oct 15 '19 20:10 Coder84619

@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

joshuaavalon avatar Oct 16 '19 10:10 joshuaavalon

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

Coder84619 avatar Oct 16 '19 12:10 Coder84619

Issues are closed after 30 days of inactivity. It’s been at least 20 days since the last update here.

github-actions[bot] avatar Nov 06 '19 00:11 github-actions[bot]

Issues are closed after 30 days of inactivity. It’s been at least 20 days since the last update here.

github-actions[bot] avatar Mar 19 '23 04:03 github-actions[bot]