docker-compose with a specified IP address - works with 1.5, doesn't work with 1.7
Thanks for the great software. I am using docker-compose to run I2P and need to specify the IP address for my I2P container. Using the following example docker-compose.yml (modified from https://geti2p.net/en/download/docker):
version: "3.5"
services:
i2p_test_cont:
container_name: i2p_test_cont
image: geti2p/i2p:i2p-i2p-1.5.0
networks:
12p_test_net:
ipv4_address: 172.28.1.1
volumes:
- i2pconfig:/i2p/.i2p
- i2ptorrents:/i2psnark
volumes:
i2pconfig:
i2ptorrents:
networks:
12p_test_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16
When started with docker-compose up --build
, I am able to connect to http://172.28.1.1:7657 and reach the console UI.
However, if I use the image tag i2p-i2p-1.7.0
or latest
, instead of i2p-i2p-1.5.0
, I am not able to access the console UI at http://172.28.1.1:7657.
Strangely, if I first build and bring up with i2p-i2p-1.5.0
, then bring down, change the tag to i2p-i2p-1.7.0
, then build and bring up, I am able to access the console UI at http://172.28.1.1:7657 and it does state 1.7.x is the version running.
Can anyone explain what is causing this issue and help me understand how to use a specific IP address with i2p-i2p-1.7.0
and not have to go through this convoluted process to get it running?
Thanks, BC