Posted on Leave a comment

Installing the LXD dashboard using the Docker image

These instructions assume you already have docker installed on your computer. The official LXD dashboard by LXDWARE image is available on Docker Hub and can be setup on your local computer with a single command.

The docker image listens on port 80 (HTTP) to display the web-based dashboard interface. If you have network access to the IP address of your docker container, you can use that to display the dashboard. However, in this set of instructions, port 80 on your computer will be used to forward traffic to port 80 on the container. The port that your host listens on can be changed.

As with all docker containers, persistent storage needs to be configured to allow data to remain throughout restarts of your container. The dashboard uses /var/lxdware for persistent data within the container. This can be bound to any directory location on your computer. For this set of installation instructions, ~/lxdware will be used as a bind mount location on your computer.

Version 2.x.x is a multi-user application and user accounts are now stored within the container’s database. To deploy version 2.x.x docker images of LXDWARE use the following command:

$ docker run -d --name lxd-dashboard -p 80:80 -v ~/lxdware:/var/lxdware --restart=always lxdware/dashboard:latest

With version 1.x.x images, the default username for the dashboard is admin. You can set your password by using the environmental variable when first running your container. If you do not set a variable, the default password is lxdware. It is recommended that you change the ADMIN_PASS value to a secure passphrase. For version 1.x.x images use the command:

$ docker run -d --name lxd-dashboard -p 80:80 -e ADMIN_PASS="lxdware" -v ~/lxdware:/var/lxdware --restart=always lxdware/dashboard:1.2.8

Leave a Reply

Your email address will not be published.