17
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Dockerコンテナとして起動しているUbuntu(Linux)でip系のコマンドが実行できない時の対処

Last updated at Posted at 2014-11-30

Dockerコンテナで起動したUbuntuでrootユーザーにも関わらず,

root@8ff52cd458e2:/# ip netns add host
mount --make-shared /var/run/netns failed: Permission denied
root@8ff52cd458e2:/# ip link add veth0 type veth peer name veth1 
RTNETLINK answers: Operation not permitted

みたいな事を言われるとき

docker runのオプション***--privileged***を付与すると権限が与えられる.

docker run --privileged ...
17
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?