Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
caoxianfei1 opened this issue Oct 7, 2023 · 1 comment
Labels
bug Something isn't working Curve Autumn Code Camp

Comments

@caoxianfei1
Copy link
Contributor

caoxianfei1 commented Oct 7, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Curve Autumn Code Camp
Projects
None yet
Development

No branches or pull requests

2 participants