Diagrams on Docker different to plantuml.com

0 votes
asked Apr 27, 2020 in Bug by Stafford

I executed this which is the example from here with version added to the bottom for reference

When I run the same script on my local via docker using either of;

docker run -d -p 8080:8080 plantuml/plantuml-server:jetty
docker run -d -p 8080:8080 plantuml/plantuml-server:tomcat

The resulting diagram has much tighter borders and text (FTP, HTTP) is overlapping the borders.

plantuml.com renders the image like this;

Rendering the image via docker looks like this;

What do I need to have the docker version render the same as the plantuml.com version? 

1 Answer

0 votes
answered Apr 27, 2020 by plantuml (294,960 points)

It may be related to GraphViz version.

Could you run on your docker :

@startuml
testdot
@enduml

and tell us the result. Thanks

commented Apr 27, 2020 by staff0rd (100 points)

See the screenshot below. I was able to determine the following;

  • 2.38.0 (Browser) - renders with tighter borders
  • 2.38.0 (vscode extension) - renders as expected
  • 2.40.1 (Browser) - renders with tighter borders
  • 2.40.1 (vscode extension) - renders with tighter borders

commented Apr 27, 2020 by plantuml (294,960 points)
You should downgrade to graphviz 2.38.0

Graphviz 2.40.1 does not work very well with PlantUML (see https://plantuml.com/en/faq )

Hope this helps!
...