Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

OCI runtime create failed: flag provided but not defined: -no-pivot: unknown. #409

Closed
wwq2333 opened this issue Jun 19, 2018 · 2 comments
Closed
Assignees
Labels
duplicate Same issue as one already reported

Comments

@wwq2333
Copy link
Contributor

wwq2333 commented Jun 19, 2018

Description of problem

  1. set the env variable 'DOCKER_RAMDISK=true' before launching dockerd. (In my environment, docker need to disable ‘pivot_root’)
  2. docker run --runtime kata-runtime --rm busybox echo 'hello'

Expected result

hello

Actual result

docker: Error response from daemon: OCI runtime create failed: flag provided but not defined: -no-pivot: unknown.

P.S.

Can kata-runtime add this flag to made it is compatible with this special environment, so i can choose the runtime by docker run --runtime xx. (kata-runtime can throw a warning, and ignore the flag)

@WeiZhang555
Copy link
Member

This is a good issue, thanks @wwq19920405! Would you like to file a PR for this?

@jshachm
Copy link
Member

jshachm commented Jun 19, 2018

It can be related to #134. And it's a limitation by now. Glad if you want to raise a PR to solve this @wwq19920405

@WeiZhang555 WeiZhang555 added the duplicate Same issue as one already reported label Jun 19, 2018
wwq2333 pushed a commit to wwq2333/runtime that referenced this issue Jun 20, 2018
This commit add a no-pivot flag (just a warning tip) in kata-runtime create and run cmd.

Fixes: kata-containers#409 , kata-containers#134

Signed-off-by: wenqi wang wangwenqi01@baidu.com
wwq2333 pushed a commit to wwq2333/runtime that referenced this issue Jun 20, 2018
This commit add a no-pivot flag (just a warning tip) in kata-runtime create and run cmd.

Fixes: kata-containers#409 , kata-containers#134

Signed-off-by: wenqi wang wangwenqi01@baidu.com
wwq2333 pushed a commit to wwq2333/runtime that referenced this issue Jun 20, 2018
This commit add a no-pivot flag (just a warning tip) in kata-runtime create and run cmd.

Fixes: kata-containers#409 , kata-containers#134

Signed-off-by: wenqi wang wangwenqi01@baidu.com
zklei pushed a commit to zklei/runtime that referenced this issue Jun 13, 2019
agent: build as Position-Independent-Executable
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate Same issue as one already reported
Projects
None yet
Development

No branches or pull requests

3 participants