Skip to content

docker image caching #2

@psy0rz

Description

@psy0rz

It seems for some reason docker images are not cached:

Second attempt of a 'docker pull alpine' (after removing it with docker rm alpine):

1772884982.571    231 192.168.13.132 NONE_NONE/200 0 CONNECT registry-1.docker.io:443 - HIER_DIRECT/3.209.96.37 - "-" "-"
1772884982.668     95 192.168.13.132 TCP_MISS/401 524 GET https://registry-1.docker.io/v2/ - HIER_DIRECT/3.209.96.37 application/json "-" "-"
1772884982.741     69 192.168.13.132 NONE_NONE/200 0 CONNECT auth.docker.io:443 - HIER_DIRECT/104.18.43.178 - "-" "-"
1772884982.858    115 192.168.13.132 TCP_REFRESH_MODIFIED_ABORTED/200 6172 GET https://auth.docker.io/token? - HIER_DIRECT/104.18.43.178 application/json "-" "-"
1772884983.085    223 192.168.13.132 NONE_NONE/200 0 CONNECT registry-1.docker.io:443 - HIER_DIRECT/3.209.96.37 - "-" "-"
1772884983.235    149 192.168.13.132 TCP_MISS/200 641 HEAD https://registry-1.docker.io/v2/library/alpine/manifests/latest - HIER_DIRECT/3.209.96.37 application/vnd.oci.image.index.v1+json "-" "-"
1772884983.456    212 192.168.13.132 NONE_NONE/200 0 CONNECT registry-1.docker.io:443 - HIER_DIRECT/3.209.96.37 - "-" "-"
1772884983.623    164 192.168.13.132 TCP_MISS/200 9859 GET https://registry-1.docker.io/v2/library/alpine/manifests/sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659 - HIER_DIRECT/3.209.96.37 application/vnd.oci.image.index.v1+json "-" "-"
1772884983.854    220 192.168.13.132 NONE_NONE/200 0 CONNECT registry-1.docker.io:443 - HIER_DIRECT/3.209.96.37 - "-" "-"
1772884984.001    145 192.168.13.132 TCP_MISS/200 1669 GET https://registry-1.docker.io/v2/library/alpine/manifests/sha256:1529d13528ed05668b2038ffab807ac8633ad6adfe6be8901adda62411f70d29 - HIER_DIRECT/3.209.96.37 application/vnd.oci.image.manifest.v1+json "-" "-"
1772884984.234    223 192.168.13.132 NONE_NONE/200 0 CONNECT registry-1.docker.io:443 - HIER_DIRECT/3.209.96.37 - "-" "-"
1772884984.236    225 192.168.13.132 NONE_NONE/200 0 CONNECT registry-1.docker.io:443 - HIER_DIRECT/3.209.96.37 - "-" "-"
1772884984.327     92 192.168.13.132 TCP_MISS/307 845 GET https://registry-1.docker.io/v2/library/alpine/blobs/sha256:1ab49c19c53ebca95c787b482aeda86d1d681f58cdf19278c476bcaf37d96de1 - HIER_DIRECT/3.209.96.37 application/octet-stream "-" "-"
1772884984.338    100 192.168.13.132 TCP_MISS/307 845 GET https://registry-1.docker.io/v2/library/alpine/blobs/sha256:d8ad8cd72600f46cc068e16c39046ebc76526e41051f43a8c249884b200936c0 - HIER_DIRECT/3.209.96.37 application/octet-stream "-" "-"
1772884984.420     88 192.168.13.132 NONE_NONE/200 0 CONNECT docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com:443 - HIER_DIRECT/172.64.66.1 - "-" "-"
1772884984.424     83 192.168.13.132 NONE_NONE/200 0 CONNECT docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com:443 - HIER_DIRECT/172.64.66.1 - "-" "-"
1772884984.555    130 192.168.13.132 TCP_MISS/200 1158 GET https://docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com/registry-v2/docker/registry/v2/blobs/sha256/1a/1ab49c19c53ebca95c787b482aeda86d1d681f58cdf19278c476bcaf37d96de1/data? - HIER_DIRECT/172.64.66.1 application/octet-stream "-" "-"
1772884984.813    384 192.168.13.132 TCP_MISS/200 4197626 GET https://docker-images-prod.6aa30f8b08e16409b46e0173d6de2f56.r2.cloudflarestorage.com/registry-v2/docker/registry/v2/blobs/sha256/d8/d8ad8cd72600f46cc068e16c39046ebc76526e41051f43a8c249884b200936c0/data? - HIER_DIRECT/172.64.66.1 application/octet-stream "-" "-"

Whats the best way to fix this?

edit: This project DOES seem to work with docker, but its not usable as a normal proxy. It would be awesome if you could intergrate their trick into your project: https://github.com/rpardini/docker-registry-proxy/tree/master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions