PlantUML Server
Table of Contents
CentOS7
dockrhub url
8080:8080でrun
$ sudo docker run -d -p 8080:8080 plantuml/plantuml-server:jetty Unable to find image 'plantuml/plantuml-server:jetty' locally Trying to pull repository docker.io/plantuml/plantuml-server ... jetty: Pulling from docker.io/plantuml/plantuml-server bc9ab73e5b14: Pull complete 193a6306c92a: Pull complete e5c3f8c317dc: Pull complete d21441932c53: Pull complete fa76b0d25092: Pull complete 346fd8610875: Pull complete 3ca5d6af9022: Pull complete c06cfa2cea32: Pull complete c4d8435b0caf: Pull complete f33d0d0e896a: Pull complete 401bfe7b1062: Pull complete 6ceff3a5b4eb: Pull complete cd4b846e81c4: Pull complete 901e76ef7881: Pull complete 0ee804bf9a12: Pull complete 41c3b1b1d30b: Pull complete 2845b0c901a8: Pull complete Digest: sha256:2040c667066f1c5b32a8f7f4dc2ca0d8779498256bbc80d8cee1197895d36168 Status: Downloaded newer image for docker.io/plantuml/plantuml-server:jetty cdb3384978556c5f7e67331e6f0b7e4b52e400b81a283931a1316a41feb6fd71 /usr/bin/docker-current: Error response from daemon: driver failed programming external connectivity on endpoint adoring_saha (58afcf0ec6bda5e ad13a9f963227bb47e29bda1baac5ae01471ec04f): Error starting userland proxy: listen tcp 0.0.0.0:8080: bind: address already in use.
10081:8080でrun
$ sudo docker run -d -p 10081:8080 plantuml/plantuml-server:jetty f4ac86af4a078c1e98f8b6a4a640dc0740a72a1083605e138274f7714a74b641
docker ps
$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f4ac86af4a07 plantuml/plantuml-server:jetty "/docker-entrypoin..." 21 minutes ago Up 21 minutes 0.0.0.0:10081->8080/tcp cocky_meninsky
docker stop
$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f8ccf69e94c8 plantuml/plantuml-server:jetty "/docker-entrypoin..." 2 weeks ago Up 2 weeks 0.0.0.0:10081->8080/tcp zen_minsky $ sudo docker stop f8ccf69e94c8 f8ccf69e94c8 $ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Ubuntu 20.04
run
$ sudo docker run -d -p 10081:8080 plantuml/plantuml-server:jetty
Unable to find image 'plantuml/plantuml-server:jetty' locally
jetty: Pulling from plantuml/plantuml-server
d960726af2be: Pull complete
e8d62473a22d: Pull complete
8962bc0fad55: Pull complete
961f7da1b9e5: Pull complete
54652506fa02: Pull complete
032db4689f58: Pull complete
6ca494a8ddbb: Pull complete
85c79b72e741: Pull complete
7c25d4940ef5: Pull complete
6d0d841fb585: Pull complete
Digest: sha256:08b1730ccf9a2167e6fc261190f4b9cc0f6b623f17a66a3bef980a0809c363e6
Status: Downloaded newer image for plantuml/plantuml-server:jetty
ca4292c6b78afaed7aa34364ac916379af604129d4e243ff7513c7955926731b
docker ps
$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ca4292c6b78a plantuml/plantuml-server:jetty "/docker-entrypoint.…" 5 seconds ago Up 2 seconds 0.0.0.0:10081->8080/tcp, :::10081->8080/tcp pensive_galileo
GitLabの設定
参考
- https://docs.gitlab.com/ee/administration/integration/plantuml.html
- GitLab の PlantUMLプラグインで表示する場合の Markdown,AsciiDoc,reStructuredText での記述方法がある。