# Docker Run

Docker runs processes in isolated containers. A container is a process which runs on a host. The host may be local or remote. When an operator executes docker run, the container process that runs is isolated in that it has its own file system, its own networking, and its own isolated process tree separate from the host.

# Guacamole Remote Desktop Client

Use this command to install Guacamole Remote Desktop Client. Change the port and volume bind location if needed.

```
docker run \
  -p 8080:8080 \
  -v /guacamole:/config \
  oznu/guacamole
```

# Matomo

Take back control with Matomo – a powerful web analytics platform that gives you 100% data ownership.

<p class="callout info">Matomo is used to gather analytics on The Homelab Wiki</p>

See the [official GitHub repo](https://github.com/crazy-max/docker-matomo) for more information.

Use the following command to install Matomo. Change the port and volume as needed.

```
docker run -d -p 8000:8000 --name matomo \
  -v /home/usr/matomo/data:/data \
  crazymax/matomo:latest
```

[![image-1600709462019.png](https://thehomelab.wiki/uploads/images/gallery/2020-09/scaled-1680-/image-1600709462019.png)](https://thehomelab.wiki/uploads/images/gallery/2020-09/image-1600709462019.png)

# Intall Watchtower with E-Mail (Gmail) Notifications

Use the following code to install watchtower with gmail notifications. See more information and [documentation here](https://github.com/containrrr/watchtower/blob/master/docs/notifications.md).

```
sudo docker run -d \
  --name watchtower \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -e WATCHTOWER_NOTIFICATIONS=email \
  -e WATCHTOWER_NOTIFICATION_EMAIL_FROM=youremail@gmail.com \
  -e WATCHTOWER_NOTIFICATION_EMAIL_TO=youremail@gmail.com \
  -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER=smtp.gmail.com \
  -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=youremail@gmail.com \
  -e WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=your-email-password \
  -e WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2 \
  containrrr/watchtower
```

Without email notifications

```
sudo docker run -d \
    --name watchtower \
    -v /var/run/docker.sock:/var/run/docker.sock \
    containrrr/watchtower
```

# Install Glances to Monitor Docker Containers (with web interface)

Glances can be installed through Docker, allowing you to run it without installing all the python dependencies directly on your system. Once you have Docker installed you can run the following command to install Glances with a web interface. [See more information here](https://glances.readthedocs.io/en/stable/docker.html).

```
sudo docker run -d --restart="always" -p 61208-61209:61208-61209 -e GLANCES_OPT="-w" -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host docker.io/nicolargo/glances
```

[![screenshot-wide.png](https://thehomelab.wiki/uploads/images/gallery/2021-07/scaled-1680-/screenshot-wide.png)](https://thehomelab.wiki/uploads/images/gallery/2021-07/screenshot-wide.png)

# Install AzuraCast

Use these commands to install AzuraCast on your host machine. This will install Docker in the process.

[![Screenshot 2022-04-05 at 08-13-56 AzuraCast.png](https://thehomelab.wiki/uploads/images/gallery/2022-04/scaled-1680-/screenshot-2022-04-05-at-08-13-56-azuracast.png)](https://thehomelab.wiki/uploads/images/gallery/2022-04/screenshot-2022-04-05-at-08-13-56-azuracast.png)

```
sudo su
```

```
apt-get upgrade
```

```
apt-get update
```

```
mkdir -p /var/azuracast
```

```
cd /var/azuracast
```

```
curl -fsSL https://raw.githubusercontent.com/AzuraCast/AzuraCast/main/docker.sh docker.sh
```

```
chmod a+x docker.sh
```

```
./docker.sh install
```