Browse Source

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/v2.0.0-rc1
Chris Smith 4 years ago
parent
commit
69e1dea224
Signed by: Chris Smith <chris@chameth.com> GPG Key ID: 3A2D4BBDC4A3C9A9
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      distrib/docker/README.md

+ 3
- 3
distrib/docker/README.md View File

@@ -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…
Cancel
Save