networking fix
This commit is contained in:
parent
7703f67134
commit
c6657a6a25
1 changed files with 9 additions and 1 deletions
|
|
@ -31,11 +31,19 @@
|
|||
"d /var/lib/gitlab-runner/cache 0755 root root -"
|
||||
];
|
||||
|
||||
networking.nat = {
|
||||
enable = true;
|
||||
internalInterfaces = ["ve-+"];
|
||||
externalInterface = "ens18";
|
||||
};
|
||||
|
||||
containers.gitlab-runner = {
|
||||
autoStart = true;
|
||||
ephemeral = false;
|
||||
|
||||
privateNetwork = false;
|
||||
privateNetwork = true;
|
||||
hostAddress = "10.250.0.1"; # host end of veth
|
||||
localAddress = "10.250.0.2"; # container end of veth
|
||||
|
||||
bindMounts = {
|
||||
"/var/lib/gitlab-runner" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue