3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/doc/manual/administration
Maximilian Bosch c957341ef5
nixos-container: allow setting custom local and host address
I have a nixops network where I deploy containers using the `container`
backend which uses `nixos-container` intenrally to deploy several
containers to a certain host.

During that time I removed and added new containers and while trying to
deploy those to a different host I realized that it isn't guaranteed
that each container gets the same IP address which is a problem as some
parts of the deployment need to know which container is using which IP
(i.e. to configure port forwarding on the host).

With this change you can specify the container's IP like this (and don't
have to use the arbitrarily used 10.233.0.0/16 subnet):

```
$ nixos-container create test --config-file test-container.nix \
    --local-address 10.235.1.2 --host-address 10.235.1.1
```
2019-04-22 18:13:45 +02:00
..
boot-problems.xml nixos/doc: ran make format 2018-05-31 21:03:51 -04:00
cleaning-store.xml Document running nixos-rebuild switch to clear /boot space 2018-08-31 21:37:07 -04:00
container-networking.xml nixos manual: automatic reflow 2018-10-15 23:10:55 +09:00
containers.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
control-groups.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
declarative-containers.xml postgresql*: use underscores in version numbers 2018-10-30 14:32:21 +00:00
imperative-containers.xml nixos-container: allow setting custom local and host address 2019-04-22 18:13:45 +02:00
logging.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
maintenance-mode.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
network-problems.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rebooting.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
rollback.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
running.xml nixos/manual: add dummy ids to silence warnings 2019-02-08 10:23:57 +01:00
service-mgmt.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
store-corruption.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
troubleshooting.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00
user-sessions.xml nixos docs: format =) 2018-05-01 19:57:09 -04:00