Install memos Inside Docker Container in Linux

Install memos Inside Docker Container in Linux

The memos is a web-based application for managing memos. It allows users to create, organize, and search for memos using tags and keywords. The memos is an open-source project that released under the MIT license.

This tutorial explains how to install memos 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 memos

  • Host network

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

docker run -d --name=memos --restart=always --network=host \
    -v /opt/memos/data:/var/opt/memos \
    neosmemo/memos
  • User-defined bridge network

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

docker network create app-net
docker run -d --name=memos --restart=always --network=app-net \
    -p 8080:5230 \
    -v /opt/memos/data:/var/opt/memos \
    neosmemo/memos

Testing memos

Open a web browser and go to http://<IP_ADDRESS>:5230, where <IP_ADDRESS> is the IP address of the system. For the first time, you will be asked to create the administrator account. After that, you will be redirected to web UI.

memos Inside Docker Container in Linux

Uninstall memos

To completely remove memos, remove its container:

docker rm --force memos

Remove memos image:

docker rmi neosmemo/memos

You can also remove memos data:

sudo rm -rf /opt/memos

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.