Skip to content

Commit a0158fa

Browse files
committed
update docker docs
1 parent e2b2b41 commit a0158fa

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

docker_part_readme.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
The premier high-level javascript graphing library
66

77

8-
9-
108
## Test Plotly.js with Plot.ly Image-Server docker container
119

1210
### Run container
@@ -15,14 +13,16 @@ Under your `plotly.js` folder, run
1513

1614
```bash
1715
$ docker run -d --name your_container_name \
18-
-v $PWD:/var/www/streambed/image_server/plotlyjs \
19-
-p 9010:9010 -p 2022:22 plotly/imageserver:[version]
16+
-v $PWD:/var/www/streambed/image_server/plotly.js \
17+
-p 9010:9010 -p 2022:22 plotly/imageserver:[version]
2018
```
2119

2220
### Run the test
2321

22+
Under your `plotly.js` folder, run
23+
2424
```bash
25-
$ docker exec -i your_container_name /bin/bash -c "cd /var/www/streambed/image_server/plotlyjs && npm run test-image"
25+
npm run test-image
2626
```
2727

2828
### SSH into docker
@@ -56,3 +56,27 @@ $ ssh-keygen -f "/home/jh/.ssh/known_hosts" -R [localhost]:2022
5656
```
5757

5858
to remove host information.
59+
60+
### list all images
61+
62+
```bash
63+
docker images
64+
```
65+
66+
### list all container
67+
68+
```bash
69+
docker ps -a
70+
```
71+
72+
### stop container
73+
74+
```bash
75+
docker stop [container hash]
76+
```
77+
78+
### remover container
79+
80+
```bash
81+
docker rm [container hash]
82+
```

0 commit comments

Comments
 (0)