docker-image-pusher
docker-image-pusher copied to clipboard
How to push to a private registry over http instead of https?
I want to use this tool to push a tar to private registry.
but this tool always try to push over https.
How to force it to use http instead of https ?
β― ./docker-image-pusher-darwin-x86_64 push --tar busybox.tar --registry http://172.20.6.128:5000/omni/busybox
π¦ Preparing to push Docker archive: busybox.tar
π Tar archive RepoTag detected: docker.m.daocloud.io/busybox:latest
π‘ No recent history matched. Using target derived from tar metadata: http://172.20.6.128:5000/omni/busybox/busybox:latest
π― Target image resolved as: http://172.20.6.128:5000/omni/busybox/busybox:latest
π§ Suggested alternate target '172.20.6.128:5000/busybox:latest' using stored login 172.20.6.128:5000
Detected missing login. Proposing alternate target based on stored credentials. Proceed with '172.20.6.128:5000/busybox:latest' ? [Y/n]:
π Switching to inferred target: 172.20.6.128:5000/busybox:latest
π Preparing registry session with 172.20.6.128:5000
π¦ Extracting tar archive to build digest table...
π¦ Extracting layer: d88cd7bdb4e9c3a339943dafa5d52113864f41530191d19cb8b618c2d114f624/layer.tar (4.1 MB)
β
Layer extracted: sha256:f21ad18174949794e810922c8ada6ff8416aabab8ef3fd3bd144e47058359f52 in 0.0s @ 0.0 MB/s
β
Successfully extracted 1 layers and config
π¦ [1/1] Uploading layer sha256:f21ad18174949794e810922c8ada6ff8416aabab8ef3fd3bd144e47058359f52 (4.1 MB)
β οΈ Unable to check blob sha256:f21ad18174949794e810922c8ada6ff8416aabab8ef3fd3bd144e47058359f52 presence in registry (continuing with upload): Network error: error sending request for url (https://172.20.6.128:5000/v2/busybox/blobs/sha256:f21ad18174949794e810922c8ada6ff8416aabab8ef3fd3bd144e47058359f52)
π€ Uploading layer directly: sha256:f21ad18174949794e810922c8ada6ff8416aabab8ef3fd3bd144e47058359f52 (4.1 MB)
Error: PushError("Failed to upload layers: Network error: error sending request for url (https://172.20.6.128:5000/v2/busybox/blobs/uploads/)")
Hi there! Thanks for reporting this. Iβve opened PR #4 to fix this by ensuring the tool respects http:// registry URLs instead of defaulting to https://. This should resolve the network errors youβre encountering when pushing to your private registry over plain HTTP. Feel free to review the changes and let me know if it works for you! π
thank you for your work ! But I do not have a environment for http registry now.