소스 검색

Fix ports in the docker instructions

-P/--publish-all publishes the container ports on a random
host port, which you have to look up using `docker port`.

In the common case they should be published on the same ports.
tags/v1.2.0-docker^2
Chris Smith 4 년 전
부모
커밋
4c93433331
로그인 계정: Chris Smith <chris@chameth.com> GPG Key ID: 3A2D4BBDC4A3C9A9
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      distrib/docker/README.md

+ 3
- 3
distrib/docker/README.md 파일 보기

@@ -19,7 +19,7 @@ certificates. To get a working ircd, all you need to do is run the image and
19 19
 expose the ports:
20 20
 
21 21
 ```shell
22
-docker run --name oragono -d -P oragono/oragono:tag
22
+docker run --name oragono -d -p 6667:6667 -p 6697:6697 oragono/oragono:tag
23 23
 ```
24 24
 
25 25
 This will start Oragono and listen on ports 6667 (plain text) and 6697 (TLS).
@@ -49,14 +49,14 @@ For example, to create a new docker volume and then mount it:
49 49
 
50 50
 ```shell
51 51
 docker volume create oragono-data
52
-docker run -d -v oragono-data:/ircd -P oragono/oragono:tag
52
+docker run -d -v oragono-data:/ircd -p 6667:6667 -p 6697:6697 oragono/oragono:tag
53 53
 ```
54 54
 
55 55
 Or to mount a folder from your host machine:
56 56
 
57 57
 ```shell
58 58
 mkdir oragono-data
59
-docker run -d -v $(PWD)/oragono-data:/ircd -P oragono/oragono:tag
59
+docker run -d -v $(PWD)/oragono-data:/ircd -p 6667:6667 -p 6697:6697 oragono/oragono:tag
60 60
 ```
61 61
 
62 62
 ## Customising the config

Loading…
취소
저장