Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 6e581f6

Browse files
chevdorgavofyork
authored andcommitted
Export ws port 9944 and add doc (#440)
Fix #437
1 parent 0e736a2 commit 6e581f6

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

README.adoc

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,34 @@ cargo run -- --dev
113113

114114
The easiest/faster option is to use the latest image.
115115

116+
117+
.First run
116118
Let´s first check the version we have. The first time you run this command, the polkadot docker image will be downloaded. This takes a bit of time and bandwidth, be patient:
117119

118120
[source, shell]
119-
docker run --rm -it chevdor/polkadot:0.2.0 ./version
121+
docker run --rm -it chevdor/polkadot:latest ./version
122+
120123

124+
.Polkadot arguments
121125
You can also pass any argument/flag that polkadot supports:
122126

123127
[source, shell]
124-
docker run --rm -it chevdor/polkadot:0.2.0 polkadot --name "PolkaDocker"
128+
docker run --rm -it chevdor/polkadot:latest polkadot --name "PolkaDocker"
125129

130+
131+
.Run as deamon
126132
Once you are done experimenting and picking the best node name :) you can start polkadot as daemon, exposes the polkadot ports and mount a volume that will keep your blockchain data locally:
127133

128134
[source, shell]
129-
docker run -d -p 30333:30333 -p 9933:9933 -v /my/local/folder:/data chevdor/polkadot:0.2.0 polkadot
135+
docker run -d -p 30333:30333 -p 9933:9933 -p 9944:9944 -v /my/local/folder:/data chevdor/polkadot:latest polkadot
136+
137+
.Docker image update
138+
If you have an image such as `latest` locally, docker will *not* bother downloading the very latest that may be available.
139+
To update:
130140

141+
- stop and delete your containers (`docker stop ...` `docker rm ...`)
142+
- delete your previous image (`docker rmi chevdor/polkadot:latest`)
143+
- run as daemon again, the very latest image will be downloaded again
131144

132145
=== Build your own image
133146

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
2727

2828
COPY version /polkadot
2929
WORKDIR /polkadot
30-
EXPOSE 30333 9933
30+
EXPOSE 30333 9933 9944
3131
VOLUME ["/data"]
3232

3333
CMD ["/bin/sh", "polkadot"]

0 commit comments

Comments
 (0)