Open FlorianLudwig opened 4 years ago
For the README example, using name
works ref.
However, I still couldn't run the example. It reported
WARN[0000] exit status 1
WARN[0000] no directory specified for freezer.state
WARN[0000] lstat : no such file or directory
ERRO[0000] container_linux.go:348: starting container process caused: process_linux.go:438: container init caused: open /dev/ptmx: no such file or directory
container_linux.go:348: starting container process caused: process_linux.go:438: container init caused: open /dev/ptmx: no such file or directory
Then I removed the config.json file and used runc spec
to generate a new one and modified the "args"
to be "/rootfs/bin/sh"
. And now it reports permission issue. Though I'm already using sudo.
ERRO[0000] container_linux.go:348: starting container process caused: exec: "/rootfs/bin/sh": stat /rootfs/bin/sh: permission denied
container_linux.go:348: starting container process caused: exec: "/rootfs/bin/sh": stat /rootfs/bin/sh: permission denied
Any help appreciated.
Executing the examples from the README don't work.
For example the first one:
seems to have changed the CLI arguments (quite some time ago)[https://github.com/opencontainers/image-tools/issues/193#issuecomment-364633491].