#!/bin/bash
# Get the IPv4 address of eth0
IPV4_ADDRESS=$(ip -4 addr show eth0 | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)
# Run the Docker container with the IPv4 address
docker container run --detach --publish=7474:7474 --publish=7687:7687 -publish=8080:8080 -e LTHOSTNAME=$IPV4_ADDRESS jpcertcc/docker-logontracer