Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crictl rmi <image> doesn't works with docker #568

Closed
senthilrch opened this issue Dec 24, 2019 · 8 comments
Closed

crictl rmi <image> doesn't works with docker #568

senthilrch opened this issue Dec 24, 2019 · 8 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@senthilrch
Copy link

I have a linux machine with docker engine and crictl. cri-tools v1.16.1. crictl by default usesunix:///var/run/dockershim.sock as the runtime-endpoint and successfully recognizes docker as the runtime.

  1. I pull "jenkins" image using crictl pull jenkins ==> successful
  2. I list the images using crictl images ==> successful. i am able to see the jenkins image
  3. I delete the jenkins image using crictl rmi jenkins ==> command output is successful
  4. Once again I list the images using crictl images ==> I still see the jenkins image

See log below:-

root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~# crictl version
Version:  0.1.0
RuntimeName:  docker
RuntimeVersion:  19.03.3
RuntimeApiVersion:  1.40.0
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~# ls -l /var/run/dockershim.sock
lrwxrwxrwx 1 root root 36 Dec 24 15:14 /var/run/dockershim.sock -> /google/host/var/run/dockershim.sock
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~# ls -l /google/host/var/run/dockershim.sock
srwxr-xr-x 1 root root 0 Dec 24 12:53 /google/host/var/run/dockershim.sock
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~# crictl pull jenkins
Image is up to date for jenkins@sha256:eeb4850eb65f2d92500e421b430ed1ec58a7ac909e91f518926e02473904f668
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~# crictl images
IMAGE                                                 TAG                 IMAGE ID            SIZE
gcr.io/cloudrun/button                                latest              ab9049a15b120       12.2GB
gcr.io/cloudshell-images/cloudshell                   latest              19c71f1435ae3       12.5GB
gcr.io/cloudshell-images/cloudshell                   previous            b277780e00924       12.2GB
gcr.io/cloudshell-images/command-recorder             latest              5c74ea813e159       116MB
gcr.io/cloudshell-images/control                      latest              a10fde0ab5225       130MB
gcr.io/cloudshell-images/credentials-service          latest              6079bd8cb9f9c       132MB
gcr.io/cloudshell-images/gateway                      latest              7d77e143967d9       231MB
gcr.io/cloudshell-images/metadata-proxy               latest              aaecd1ed59415       226MB
gcr.io/cloudshell-images/metricsreporter              latest              4fa6ea6669063       17.2MB
gcr.io/cloudshell-images/theia                        latest              531ccb957467d       3.42GB
gcr.io/cloudshell-images/websockify                   latest              ceadb37a5e88f       243MB
gcr.io/devops-environments/receiver                   latest              d86b32d032f01       35.9MB
gcr.io/google_containers/pause                        2.0                 2b58359142b09       350kB
gcr.io/graphite-cloud-shell-images/cf-on-k8s          latest              b4af2858385f6       12.4GB
gcr.io/graphite-cloud-shell-images/terraform          latest              59ada494c2f14       12.3GB
gcr.io/graphite-cloud-shell-images/vault              latest              ba698ab7e2ff9       12.3GB
gcr.io/k8s-minikube/localkube-dind-image-devshell     v1.7.5              915dbe4abea26       761MB
gcr.io/stackdriver-agents/stackdriver-logging-agent   0.2-1.5.33-1-1      fcfafd4046005       548MB
jenkins                                               latest              cd14cecfdb3a6       696MB
k8s.gcr.io/pause                                      3.1                 da86e6ba6ca19       742kB
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~# crictl rmi jenkins
Deleted: jenkins:latest
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~# crictl images
IMAGE                                                 TAG                 IMAGE ID            SIZE
gcr.io/cloudrun/button                                latest              ab9049a15b120       12.2GB
gcr.io/cloudshell-images/cloudshell                   latest              19c71f1435ae3       12.5GB
gcr.io/cloudshell-images/cloudshell                   previous            b277780e00924       12.2GB
gcr.io/cloudshell-images/command-recorder             latest              5c74ea813e159       116MB
gcr.io/cloudshell-images/control                      latest              a10fde0ab5225       130MB
gcr.io/cloudshell-images/credentials-service          latest              6079bd8cb9f9c       132MB
gcr.io/cloudshell-images/gateway                      latest              7d77e143967d9       231MB
gcr.io/cloudshell-images/metadata-proxy               latest              aaecd1ed59415       226MB
gcr.io/cloudshell-images/metricsreporter              latest              4fa6ea6669063       17.2MB
gcr.io/cloudshell-images/theia                        latest              531ccb957467d       3.42GB
gcr.io/cloudshell-images/websockify                   latest              ceadb37a5e88f       243MB
gcr.io/devops-environments/receiver                   latest              d86b32d032f01       35.9MB
gcr.io/google_containers/pause                        2.0                 2b58359142b09       350kB
gcr.io/graphite-cloud-shell-images/cf-on-k8s          latest              b4af2858385f6       12.4GB
gcr.io/graphite-cloud-shell-images/terraform          latest              59ada494c2f14       12.3GB
gcr.io/graphite-cloud-shell-images/vault              latest              ba698ab7e2ff9       12.3GB
gcr.io/k8s-minikube/localkube-dind-image-devshell     v1.7.5              915dbe4abea26       761MB
gcr.io/stackdriver-agents/stackdriver-logging-agent   0.2-1.5.33-1-1      fcfafd4046005       548MB
jenkins                                               latest              cd14cecfdb3a6       696MB
k8s.gcr.io/pause                                      3.1                 da86e6ba6ca19       742kB
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
root@cs-6000-devshell-vm-77c098e3-2b6d-4f66-a84e-0840df0bf978:~#
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 23, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 22, 2020
@mikebrow
Copy link
Contributor

mikebrow commented May 19, 2020

unfortunately this bot keeps closing the issue
#504
#399

@senthilrch
Copy link
Author

senthilrch commented May 20, 2020 via email

@mikebrow
Copy link
Contributor

crictl.. sends the action to the container runtime... the container runtime returns the result of the action.. in this case the container runtime returned success for the rmi request. A force option may be more successful #504. You'll have more luck getting this addressed at the container runtime than here in the crictl tool.

@senthilrch
Copy link
Author

Ok, I'll check with the force option and update the results here.

@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

4 participants