5
5

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.

特定のIPアドレス:ポートでLISTEN

Last updated at Posted at 2014-11-13

参考

書式
docker run -it -p <IPaddr>:<host-port>:<docker-port> <イメージ名>
docker run -it -p 192.168.0.3:8080:80 <イメージ名>

ダメだった例

IPv6が有効な場合、以下だと::1でLISTERNされた

docker run -it -p 0.0.0.0:8080:80 <イメージ名>

udpでLISTEN

docker run -it -p 192.168.0.3:8080:80/udp <イメージ名>
  • /udpをつける
5
5
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
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?