Skip to content

cache reload does not appear to be working properly #10060

Open
@0x-shanks

Description

@0x-shanks

Steps to reproduce the issue:

  1. Pull the alpine:3.11 and alpine:3.12 image and tag alpine:3.11 as test

スクリーンショット 2020-12-30 0 23 01

  1. Add a cache with the following command
    minikube cache add alpine:test

  2. Enter the minikube container and check if the image exists

スクリーンショット 2020-12-30 0 25 05

  1. Tag alpine:3.12 as test

スクリーンショット 2020-12-30 0 26 37

  1. Reload the cache
    minikube cache reload alpine:test

  2. I check the image again, but it hasn't changed

スクリーンショット 2020-12-30 0 27 30

Optional: Full output of minikube logs command:

user@user ~ % minikube cache reload alpine:test -v=6 --alsologtostderr
I1230 00:30:52.617760   11506 out.go:221] Setting OutFile to fd 1 ...
I1230 00:30:52.618211   11506 out.go:273] isatty.IsTerminal(1) = true
I1230 00:30:52.618219   11506 out.go:234] Setting ErrFile to fd 2...
I1230 00:30:52.618223   11506 out.go:273] isatty.IsTerminal(2) = true
I1230 00:30:52.618361   11506 root.go:280] Updating PATH: /Users/user/.minikube/bin
I1230 00:30:52.618678   11506 cache.go:92] acquiring lock: {Name:mk21f3e783644f4fb459dda56815a449b17b30ed Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I1230 00:30:52.618797   11506 cache.go:100] /Users/user/.minikube/cache/images/alpine_test exists
I1230 00:30:52.618810   11506 cache.go:81] cache image "alpine:test" -> "/Users/user/.minikube/cache/images/alpine_test" took 142.87µs
I1230 00:30:52.618817   11506 cache.go:66] save to tar file alpine:test -> /Users/user/.minikube/cache/images/alpine_test succeeded
I1230 00:30:52.618824   11506 cache.go:73] Successfully saved all images to host disk.
I1230 00:30:52.619292   11506 cli_runner.go:111] Run: docker ps -a --filter label=name.minikube.sigs.k8s.io --format {{.Names}}
I1230 00:30:52.768326   11506 cli_runner.go:111] Run: docker container inspect minikube --format={{.State.Status}}
I1230 00:30:52.903556   11506 ssh_runner.go:149] Run: systemctl --version
I1230 00:30:52.903697   11506 cli_runner.go:111] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I1230 00:30:53.036130   11506 sshutil.go:48] new ssh client: &{IP:127.0.0.1 Port:55007 SSHKeyPath:/Users/user/.minikube/machines/minikube/id_rsa Username:docker}
I1230 00:30:53.148720   11506 ssh_runner.go:149] Run: docker images --format {{.Repository}}:{{.Tag}}
I1230 00:30:53.207718   11506 docker.go:382] Got preloaded images: -- stdout --
alpine:test

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmd/cacheIssues with the "cache" commandkind/featureCategorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions