This guide uses the published eggdrop image for quick validation and a bind-mounted config for persistent runs.
See Docker installation: Docker
docker pull eggdrop:latest
docker run --rm eggdrop:latest eggdrop -v
mkdir -p ./eggdrop
touch ./eggdrop/eggdrop.conf
Populate ./eggdrop/eggdrop.conf with your IRC server, nick, and channel settings before starting the container.
docker run -d \
--name eggdrop \
--restart unless-stopped \
-v "$PWD/eggdrop":/home/eggdrop \
eggdrop:latest /home/eggdrop/eggdrop.conf