85
63

More than 5 years have passed since last update.

dockerで複数個のポートフォワーディングを行う

Last updated at Posted at 2014-01-24

Webサーバの入ったコンテナに対してポートフォワーディングを行いたいが、例えば80番と443番のように、複数個のポートフォワードを設定したいという場合があると思う。

そういうときは、

docker run -p 80:80 -p 443:443 d2b1a9e25105

のように、docker runに対して-pオプションを複数個設定すればよい。

85
63
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
85
63