Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 43ba5cbe3cd4
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 2cca7180c181
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Apr 22, 2019

  1. 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
    ```
    Ma27 committed Apr 22, 2019
    Copy the full SHA
    c957341 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2019

  1. Merge pull request #60029 from Ma27/configure-ipv4-for-imperative-con…

    …tainer
    
    nixos-container: allow setting custom local and host address
    globin committed Jun 6, 2019
    Copy the full SHA
    2cca718 View commit details
    Browse the repository at this point in the history