Questions tagged [nerdctl]

35 questions
4
votes
2 answers

NerdCTL will not use local image when building

I am trying to build a common base image, that many of my other images will use. But Nerdctl/Containerd doesn't seem to check for the image locally first. Reproduced with the simple example # Dockerfile.base FROM python:3 # Dockerfile.child From…
Matt Ruge
  • 191
  • 1
  • 2
  • 8
4
votes
2 answers

what should be used instead of 'host.docker.internal' when using nerdctl in place of docker?

When using docker desktop, we would connect to the host machine from the container using the URL 'host.docker.internal'. however container is not able to connect to the host machine (i.e my machine) when I am using nerdctl instead of docker. I…
Akshay Vijay Jain
  • 13,461
  • 8
  • 60
  • 73
3
votes
0 answers

Rancher desktop unable to pull an image from Docker

I have downloaded and set up Rancher Desktop with nerdctl but I am unable to pull any public image from the Docker Hub. I am receiving an error: INFO[0011] trying next host error="failed to do request:…
David Sagang
  • 317
  • 1
  • 6
  • 24
3
votes
0 answers

Container fails to download gradle

My host machine is a Windows 11 with WSL2. I installed Rancher Desktop v0.7.1 With the containerd(nerdctl(v 0.15.0)) option and Kubernetes v1.23.1(latest) Then I tried to build the following Dockerfile # syntax=docker/dockerfile:experimental #FROM…
saavedrah
  • 183
  • 14
2
votes
1 answer

Can nerdctl/crictl be used to list containers started by docker

I'm using version 20.10.21 of docker, in my understanding docker with this version uses containerd to manage image and container lifecycle, but why cannot I use crictl/nerdctl to list the containers which I started by docker cli? What I've…
shizhz
  • 11,715
  • 3
  • 39
  • 49
2
votes
0 answers

nerdctl DNS timeout on Windows

We just installed Rancher Desktop 1.4.1 (nerdctl v 0.20.0) on Windows 10 and we seem to have a problem pulling images and logging into a registry: nerdctl pull alpine docker.io/library/alpine:latest: resolving …
SCote
  • 664
  • 1
  • 8
  • 19
2
votes
0 answers

Path expansion for volume overlays uses root with Rancher Desktop (OSX)

We're trying to use rancher desktop and nerdctl to bring up some compose stacks. The issue we've run into is that when you have a mount similar to the following, nerdctl expands either ${HOME} or ~/ to /root, despite me running the command as my…
geudrik
  • 666
  • 8
  • 22
2
votes
1 answer

How can I load multiple tar images using nerdctl? (containerd)

There are around 10 container image files on the current directory, and I want to load them to my Kubernetes cluster that is using containerd as CRI. [root@test tmp]# ls -1 test1.tar test2.tar test3.tar ... I tried to load them at once using xargs…
Daigo
  • 815
  • 1
  • 5
  • 16
2
votes
1 answer

unsupported port number: 0

If we specify single port in dockerfile or docker-compose file like below sshd: build: ./backend/mock/sshd volumes: - ./docker/sftp_upload_dir:/root/upload_dir ports: - '22'. #<---------- and use the docker-compose file…
Akshay Vijay Jain
  • 13,461
  • 8
  • 60
  • 73
1
vote
0 answers

nerdctl compose do not support expose

docker-compose.yaml: mysql_db: build: context: . dockerfile: DockerfileMySQL container_name: mysql_db_${TAG:-latest} image: mysql_db:${TAG:-latest} environment: - MYSQL_ROOT_PASSWORD=test1 expose: -…
L.hh
  • 11
  • 2
1
vote
1 answer

nerdctl port not exposed

I started to used containerd instead of docker. I did what was to be installed for containerd with nerdctl. Nginx was the container I ran. Though container port 80 is mapped, it's not exposed. I've checked whether firewall blocks but none. nerdctl…
infantus
  • 49
  • 7
1
vote
0 answers

nerdctl run command in scripts to run in background

When i execute the nerdctl command on terminal with (&) to run in the background , i could get back to the prompt with an "enter" but the same is not working when i put the nerdctl command in scripts. Is there a way to solve this ? nerdctl run --rm…
0
votes
0 answers

Nerdctl compose and devices

Is it possible to use host device (like /dev/ttyUSB0) in container using nerdctl compose? I want to use as normal docker-compose.yaml with device gpoup like in docker system. I'm using nerdctl 1.5.0 version with containerd daemon
Mike Mint
  • 145
  • 5
0
votes
1 answer

Command cannot be recognized

I wanted to ask a likely very simple question regarding Linux (AlmaLinux-9.2)... I unpacked the file and I wanted to execute the binary file nerdctl. However, I could not do it if I did not add ./ at the beginning of the command? pic 1 It is because…
Wanderer
  • 3
  • 1
0
votes
0 answers

Rancher Desktop - Nerdctl --output

I have installed Rancher Desktop. My Dockerfile looks like this: FROM amazonlinux:2 AS base RUN yum install -y python3 ... RUN mkdir /output && venv-pack -o /output/pyspark_deps.tar.gz FROM scratch AS export COPY --from=base…
Flo
  • 377
  • 2
  • 15
1
2 3