plantuml / plantuml-server

PlantUML Online Server
https://plantuml.com/
GNU General Public License v3.0
1.65k stars 472 forks source link

Docker image not working - Dot Executable not exist #244

Closed GNHua closed 1 year ago

GNHua commented 1 year ago

Tried both commands to set up a docker container for local:

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

With only one class, it works.

@startuml
class Dummy {
  String data
  void methods()
}
@enduml

Results:

Screen Shot 2022-10-13 at 3 10 45 PM

But if adding another class, it stops working

@startuml
class Dummy {
  String data
  void methods()
}

class Flight {
   flightNumber : Integer
   departureTime : Date
}
@enduml

Result:

Screen Shot 2022-10-13 at 3 06 45 PM

Most examples on https://plantuml.com/ does not work.

Computer: MacBook Pro 16in M1 Max, macOS 12.6 Monterey Docker: M1 version 4.12.0 (85629)

mingmxu commented 1 year ago

graphviz is not installed properly in the image. Try to pull the latest image and run it again

docker run --pull=always  -d -p 8080:8080 plantuml/plantuml-server:jetty