-
Notifications
You must be signed in to change notification settings - Fork 735
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
I want to use the nerdctl runcommand into the nerdctl container but I found the nerdctl runcan not work:
- 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
- Exec itto the nerd container:
# nerdctl exec -it 09850b2176a9 sh
- 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
Labels
questionFurther information is requestedFurther information is requested