opencurve/curveadm

docker and podman runtime create option --init and --pid host conflict.

Opened this issue · 1 comments

Newer versions of docker (1.25+) and podman support setting the init option for command docker create or podman create. However, when using host namespace (--pid host), the init option cannot be set.
The following is the command output of curveadm mount:

root@pve01-prod-common:/usr/share/doc/podman#  sudo docker create --device /dev/fuse --entrypoint /bin/bash --env LD_PRELOAD=/usr/local/lib/libjemalloc.so --init --cap-add SYS_ADMIN --mount type=bind,source=/curvefs,target=/curvefs/client/mnt/curvefs,bind-propagation=rshared --name curvefs-filesystem-97698fcb427fe3ec07941f729271a2f4 --network host --pid host --privileged --security-opt apparmor:unconfined --ulimit core=-1 --volume /var/log/curvefs/client:/curvefs/client/logs --volume /var/run/curve/data:/curvefs/client/data --volume /tmp:/core quay.io/opencurve/curve/curvefs:v2.6-76df0d0 /client.sh pve s3 --role=client --args='-f -o default_permissions -o allow_other -o fsname=pve -o fstype=s3 -o user=curvefs -o conf=/curvefs/client/conf/client.conf /curvefs/client/mnt/curvefs'
Error: cannot add init binary as PID 1 (PID namespace isn't private)

Registration procedure

Step 1. Add a comment when you sign up.The purpose of comments is for us to understand you and determine whether you have the basic ability to complete this issue.

  • If you are a student, please introduce your school, major, programming language, technical fields of interest, what you are good at, and why you chose this issue.
  • If you are already working, please introduce your company, career, work content, technical fields of interest, and why you chose this issue.

Step 2. Use WeChat to add the Curve community assistant "Curve" as a WeChat friend, tell your GitHub ID, and send the Issue link of your choice. The assistant will invite you to communicate with the mentor by WeChat.

Step 3. In order to better complete each development task, the mentor will select the developer who best matches the issue based on everyone's comment on GitHub and communication status by WeChat. If you are not selected, please select another issue.

Tips

  • Before developing, please read the dev guideline( https://ask.opencurve.io/t/topic/201) carefully and communicate with your mentor.
  • Please submit a draft PR before 11.29, and the mentor will review it within 2-5 working days and may guide you to modify the PR based on the actual situation.
  • If you successfully merge into PR before 12.27 and you will receive gifts carefully prepared by the Curve community.

assigned to me