Hallo,
I'm trying to set up a container with fixed ip address. I have done the following:
    podman network create --subnet 10.89.16.0/24 testnet
    podman run . . . .  --network testnet --ip 10.89.16.32 --publish 9094:9092 . . . . .
Inside my container a service is listening on port 9092.
When I exec into container, I can access service at port 9092
But when I'm trying to connect to 10.89.16.32:9094 from the host,
connection hangs. 10.89.16.32 also cannot be pinged from host.
When I inspect the network I get the following:
island:other [master]> podman network inspect testnet | more
[
      {
           "name": "testnet",
           "id":
"0fc4c960a787386f000c94760c47a27bf987e8c7900015a17686f1d49386764b",
           "driver": "bridge",
           "network_interface": "podman8",
           "created": "2025-01-13T23:12:33.065307139+03:00",
           "subnets": [
                {
                     "subnet": "10.89.16.0/24",
                     "gateway": "10.89.16.1"
                }
           ],
           "ipv6_enabled": false,
           "internal": false,
           "dns_enabled": true,
           "ipam_options": {
                "driver": "host-local"
           },
           "containers": {
               
"20186a8598e92c5dea05d722f46651aa688543ee01cf6aa7a324e55ff631f0ee": {
                     "name": "test",
                     "interfaces": {
                          "eth0": {
                               "subnets": [
                                    {
                                         "ipnet": "10.89.16.32/24",
                                         "gateway": "10.89.16.1"
                                    }
                               ],
                               "mac_address": "ca:60:49:9b:66:e8"
                          }
                     }
                }
           }
      }
]
podman version is 5.3.1 (debian/sid), container is run in rootless mode.
Best regards,
-- 
Michael Ivanov
    
    
    
 
                    
                    
                        
                        Show replies by date
                        
                    
                    
                    
                        
                            
                
                
                    
                    
                    
     
    
Hallo,
I'm trying to set up a container with fixed ip address. I have done the following:
    podman network create --subnet 10.89.16.0/24 testnet
    podman run . . . .  --network testnet --ip 10.89.16.32 --publish 9094:9092 . . . . .
Inside my container a service is listening on port 9092.
When I exec into container, I can access service at port 9092
But when I'm trying to connect to 10.89.16.32:9094 from the host,
connection hangs. 10.89.16.32 also cannot be pinged from host.
When I inspect the network I get the following:
island:other [master]> podman network inspect testnet | more
[
      {
           "name": "testnet",
           "id":
"0fc4c960a787386f000c94760c47a27bf987e8c7900015a17686f1d49386764b",
           "driver": "bridge",
           "network_interface": "podman8",
           "created": "2025-01-13T23:12:33.065307139+03:00",
           "subnets": [
                {
                     "subnet": "10.89.16.0/24",
                     "gateway": "10.89.16.1"
                }
           ],
           "ipv6_enabled": false,
           "internal": false,
           "dns_enabled": true,
           "ipam_options": {
                "driver": "host-local"
           },
           "containers": {
               
"20186a8598e92c5dea05d722f46651aa688543ee01cf6aa7a324e55ff631f0ee": {
                     "name": "test",
                     "interfaces": {
                          "eth0": {
                               "subnets": [
                                    {
                                         "ipnet": "10.89.16.32/24",
                                         "gateway": "10.89.16.1"
                                    }
                               ],
                               "mac_address": "ca:60:49:9b:66:e8"
                          }
                     }
                }
           }
      }
]
podman version is 5.3.1 (debian/sid), container is run in rootless mode.
Best regards,
-- 
Michael Ivanov