Skip to content

nerdctl can not run command when inside the nerdctl containers #272

@Huimintai

Description

@Huimintai

I want to use the nerdctl runcommand into the nerdctl container but I found the nerdctl runcan not work:

  1. Create the nerd container:
nerdctl run  -d --privileged --net=host --restart=always -v /etc/hosts:/app/hosts -v /run/containerd/containerd.sock:/run/containerd/containerd.sock -v /opt/tke-installer/data:/app/data -v /opt/tke-installer/conf:/app/conf -v registry-certs:/app/certs -v tke-installer-bin:/app/bin docker.io/library/test:20 tke-installer
  1. Exec itto the nerd container:
# nerdctl exec -it 09850b2176a9 sh
  1. Run one container:
/app # nerdctl images | grep alpine
alpine                                     latest           234cb88d3020    2 days ago           5.9 MiB
/app # nerdctl run  alpine:latest
FATA[0000] no such file or directory

But I can run the container outside the container in my host:

root@VM-8-15-ubuntu:~#  nerdctl run  alpine:latest
root@VM-8-15-ubuntu:~#

So does the nerdctl support run containers into the nerd container?

/app # nerdctl version
Client:
 Version:	v0.9.0-12-g72ac023
 Git commit:	72ac023383304d57947f75ce2077d3952aacd0e0

Server:
 containerd:
  Version:	v1.5.2
  Revision:	36cc874494a56a253cd181a1a685b44b58a2e34a

I use the master branch build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions