-
-
Notifications
You must be signed in to change notification settings - Fork 469
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
[BUG] k3d image import
fails when using containerd
for images in Docker Desktop
#1538
Comments
I just noticed that k3d latest version is I confirmed the same behaviour with k3d Scripts summary: k3d cluster create demo
docker pull redis:7.4.1
k3d image import --cluster=demo redis:7.4.1
docker exec k3d-demo-server-0 ctr images list --quiet Expected |
I've also tried all 3 modes, but it behaves the same with
|
Confirmed ... I see this issue as well. |
Found this simple workaround when using # For these variables
node="k3d-default-server-0"
image_tag="docker.io/library/alpine:latest"
# Run these commands:
image_platform=$(docker image inspect "$image_tag" --format="{{.Os}}/{{.Architecture}}")
docker image save "$image_tag" | docker exec -i "$node" ctr images import --platform="$image_platform" - This will use docker's native image
|
What did you do
Where is this setting in Docker Desktop?
![image](https://private-user-images.githubusercontent.com/25514145/397112362-3e22edb1-4a48-4b1c-bb07-fc7cefeee683.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0Njc0NzksIm5iZiI6MTczOTQ2NzE3OSwicGF0aCI6Ii8yNTUxNDE0NS8zOTcxMTIzNjItM2UyMmVkYjEtNGE0OC00YjFjLWJiMDctZmM3Y2VmZWVlNjgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE3MTkzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRkZTJlMDViZjAxMjI2YmU3ZjViMTU2OGQxNmJkN2FiZWY4ZjNhNzI5MzM4Mzk5MjU1OWQzNDk2YTA2NzAzYTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.75GlT53gn_jCwXHmMqUVYGQ0u7U-u4SN4OYrRd8eqk4)
How was the cluster created?
k3d cluster create demo
Console output for reference
What did you do afterwards?
docker pull redis:7.4.1
k3d image import --cluster=demo redis:7.4.1
Console output for reference
server-0
node using node's local contained instance:docker exec k3d-demo-server-0 ctr images list --quiet
Console output for reference
What did you expect to happen
That the image is available on the k3s docker node.
Disabling
containerd
in Docker Desktop and re-running the same steps shows the expected output:Console output for reference
Which OS & Architecture
output of
k3d runtime-info
(withcontainerd
)output of
k3d runtime-info
(withoutcontainerd
)Which version of
k3d
k3d version
Which version of docker
output of
docker version
Console output for reference
output of
docker info
Console output for reference
The text was updated successfully, but these errors were encountered: