Excalidraw is an open-source web application for creating diagrams, sketches, and other visualizations. It's popular for its simplicity and versatility, allowing users to quickly draw various shapes, lines, and text to express their ideas visually.
This tutorial explains how to install Excalidraw inside Docker container on Linux. Commands have been tested on Ubuntu.
Prepare environment
Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.
Install Excalidraw
- Host network
Run the following command to create a container for Excalidraw that uses host network:
docker run -d --name=excalidraw --restart=always --network=host \
excalidraw/excalidraw
- User-defined bridge network
User-defined bridge network can be used for listening on different port. By default, Excalidraw service is listening on port 80. It can be changed with -p
option.
docker network create app-net
docker run -d --name=excalidraw --restart=always --network=app-net \
-p 8080:80 \
excalidraw/excalidraw
Testing Excalidraw
To access the user interface, open a web browser and go to http://<IP_ADDRESS>
, where <IP_ADDRESS>
is the IP address of the system.
Uninstall Excalidraw
To completely remove Excalidraw, remove its container:
docker rm --force excalidraw
Remove Excalidraw image:
docker rmi excalidraw/excalidraw
If a user-defined bridge network was created, you can delete it as follows:
docker network rm app-net
Leave a Comment
Cancel reply