Install Dillinger Inside Docker Container in Linux

Install Dillinger Inside Docker Container in Linux

Dillinger is a web-based Markdown editor with mobile responsive design and offline storage capability. Dillinger is an open-source project that released under the MIT license.

This tutorial explains how to install Dillinger inside a Docker container in the 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 Dillinger

  • Host network

Run the following command to create a container for Dillinger that uses host network:

docker run -d --name=dillinger --restart=always --network=host \
    -v /opt/dillinger/config:/config \
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, Dillinger service is listening on port 8080. It can be changed with -p option.

docker network create app-net
docker run -d --name=dillinger --restart=always --network=app-net \
    -p 8081:8080 \
    -v /opt/dillinger/config:/config \

Testing Dillinger

To access the editor, open a web browser and go to http://<IP_ADDRESS>:8080, where <IP_ADDRESS> is the IP address of the system.

Dillinger Inside Docker Container in Linux

Uninstall Dillinger

To completely remove Dillinger, remove its container:

docker rm --force dillinger

Remove Dillinger image:

docker rmi linuxserver/dillinger

You can also remove Dillinger data:

sudo rm -rf /opt/dillinger

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

Leave a Comment

Cancel reply

Your email address will not be published.