1
1

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 run するときに、groupを複数指定してコンテナを起動したい

Last updated at Posted at 2016-08-02

概要

dockerコンテナを起動する時に複数のgroupを指定したい

結論

--group-add で、追加したいgroupを指定することができる。
複数並べていく。

--group-add=213 --group-add=456

調べたこと

起動時にuid,gidを指定できることは、以前調べたが、複数指定する方法は知らなかった。

docker run --help の中に以下のようなものを見つけた

  --group-add=[]                  Add additional groups to join

このオプションがいつからつかえるようになっているかはわからないが、1.11.2 ではつかえるようだ

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?