spiegel_podman/pkg/specgen/generate
Paul Holzinger 535818414c
support advanced network configuration via cli
Rework the --network parse logic to support multiple networks with
specific network configuration settings.
--network can now be set multiple times. For bridge network mode the
following options have been added:
  - **alias=name**: Add network-scoped alias for the container.
  - **ip=IPv4**: Specify a static ipv4 address for this container.
  - **ip=IPv6**: Specify a static ipv6 address for this container.
  - **mac=MAC**: Specify a static mac address address for this container.
  - **interface_name**: Specify a name for the created network interface inside the container.

So now you can set --network bridge:ip=10.88.0.10,mac=44:33:22:11:00:99
for the default bridge network as well as for network names.
This is better than using --ip because we can set the ip per network
without any confusion which network the ip address should be assigned
to.
The --ip, --mac-address and --network-alias options are still supported
but --ip or --mac-address can only be set when only one network is set.
This limitation already existed previously.

The ability to specify a custom network interface name is new
Fixes #11534

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-12-14 15:23:39 +01:00
..
kube Add support for configmap volumes to play kube 2021-12-02 14:48:04 -05:00
config_linux.go Pod Device Support 2021-09-20 23:22:43 -04:00
config_linux_cgo.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
config_linux_nocgo.go migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
config_linux_test.go Add filepath glob support to --security-opt unmask 2021-05-04 14:40:43 -04:00
container.go Add --unsetenv & --unsetenv-all to remove def environment variables 2021-11-15 15:10:12 -05:00
container_create.go network db: add new strucutre to container create 2021-12-14 15:23:39 +01:00
namespaces.go support advanced network configuration via cli 2021-12-14 15:23:39 +01:00
oci.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
pod_create.go Add new networks format to spegecen 2021-12-14 15:23:39 +01:00
ports.go Support EXPOSE with port ranges 2021-11-20 19:24:21 -05:00
ports_bench_test.go libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
ports_test.go libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
security.go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
storage.go volumes: be more tolerant and fix infinite loop 2021-10-28 16:37:33 +02:00
validate.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00