- Is this your first time deploying Airbyte?: Yes
- OS Version / Instance: Oracle Linux 8 Ec2 Instance
- Memory / Disk: 2Gb / 100GB
- Deployment: Docker
- Airbyte Version: 0.40.22
- Source name/version: Postgres
- Destination name/version: S3
- Step: The issue is happening when running docker-compose up
- Description:
I’ve been occasionally getting locked out of my ssh session with my airbyte instance after performing a docker-compose up.
I’ve tracked down that this is due to the subnet of the three airbyte docker networks increasing after every docker-compose down and then up.
[airbyte@development-airbyte airbyte]$ docker network ls
NETWORK ID NAME DRIVER SCOPE
3943d367a72e airbyte_airbyte_internal bridge local
c0a50636e38f airbyte_airbyte_public bridge local
4c78a1d7bf79 airbyte_default bridge local
f404daae64c4 bridge bridge local
b828a33e4272 host host local
4645af91faf8 none null local
[airbyte@development-airbyte airbyte]$ docker network inspect c0a50636e38f | grep Subnet
"Subnet": "172.20.0.0/16",
[airbyte@development-airbyte airbyte]$ docker network inspect 4c78a1d7bf79 | grep Subnet
"Subnet": "172.18.0.0/16",
[airbyte@development-airbyte airbyte]$ docker network inspect f404daae64c4 | grep Subnet
"Subnet": "172.17.0.0/16"
After a docker-compose down and up;
[root@development-airbyte ~]# docker network ls
NETWORK ID NAME DRIVER SCOPE
eb3bc555c420 airbyte_airbyte_internal bridge local
1cc8a85e2472 airbyte_airbyte_public bridge local
863c56b7b3ed airbyte_default bridge local
f404daae64c4 bridge bridge local
b828a33e4272 host host local
4645af91faf8 none null local
[root@development-airbyte ~]# docker network inspect eb3bc555c420 | grep Subnet
"Subnet": "172.22.0.0/16",
[root@development-airbyte ~]# docker network inspect 1cc8a85e2472 | grep Subnet
"Subnet": "172.23.0.0/16",
[root@development-airbyte ~]# docker network inspect 863c56b7b3ed | grep Subnet
"Subnet": "172.21.0.0/16",
My ec2 instance happens to be a member of a subnet which is 172.31.33.0/24.
So after a few stop-starts, I’m locked out of the ssh session and I have to destroy and recreate the ec2 instance and redeploy airbyte.
I’m attempting to define what the subnets for each of the airbyte_ docker networks via docker-compose.yaml and have managed to do this for all but the airbyte_default network, which is not defined in docker-compose.yaml, but is created somehow.
networks:
airbyte_public:
ipam:
driver: default
config:
- subnet: 172.118.0.0/24
airbyte_internal:
ipam:
driver: default
config:
- subnet: 172.118.1.0/24
I’ve tried defining the subnet for airbyte_default as above, however, this results in a message at docker-compose up stating;
WARNING: Some networks were defined but are not used by any service: airbyte_default
and the airbyte_default subnet increments anyway.