添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I created one docker image of sles12 machine by taking backing of all file system which are necessary and created one tar file. For creating docker image I run following command -

cat fullbackup.tar | docker import - sles_image

After that I run docker image in container using below command -

docker run --net network1 -i -t sles_image /bin/bash

note - I already set up networking in this docker container (IP address which I want).

Now In my docker container, some applications are already configured because that applications are available in sles12 machine from which I created this docker image. These custom applications are internally running some kernel low level commands like modprobe.

But when I starts my application, application will start correctly. I'm facing this error -

Operation not permitted

How I can give correct permissions so that it will not give me this error?

You might try set the Docker container with Runtime privilege and Linux capabilities, with the

docker run --privileged

Confirmed working using host network interfaces directly. Initially had ifconfig enp0s8 192.168.55.4; ifconfig: SIOCSIFADDR: Operation not permitted. Running with --privileged solved the issue. – DarkFranX Jun 12, 2018 at 13:57

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.