Install HomeBox Inside Docker Container on Linux

Install HomeBox Inside Docker Container on Linux

HomeBox is an open-source web-based inventory management system. It provides a simple and efficient way to organize and track household items in a centralized interface. Built with simplicity in mind, it offers an intuitive experience without the need for complex setup or configuration.

This tutorial explains how to install HomeBox inside a 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 HomeBox

  • Host network

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

docker run -d --name=homebox --restart=always --network=host \
    -v /opt/homebox/data:/data \
    ghcr.io/sysadminsmedia/homebox
  • User-defined bridge network

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

docker network create app-net
docker run -d --name=homebox --restart=always --network=app-net \
    -p 8080:7745 \
    -v /opt/homebox/data:/data \
    ghcr.io/sysadminsmedia/homebox

Testing HomeBox

Open a web browser and navigate to http://<IP_ADDRESS>:7745, replacing <IP_ADDRESS> with IP address of the system. On first access, register a new account. After registration, use the account credentials to sign in.

HomeBox Inside Docker Container on Linux

Uninstall HomeBox

To completely remove HomeBox, remove its container:

docker rm --force homebox

Remove HomeBox image:

docker rmi ghcr.io/sysadminsmedia/homebox

You can also remove HomeBox data:

sudo rm -rf /opt/homebox

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.