Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure docker daemon.json #8095

Closed
phlbrz opened this issue Apr 24, 2024 · 1 comment
Closed

Configure docker daemon.json #8095

phlbrz opened this issue Apr 24, 2024 · 1 comment

Comments

@phlbrz
Copy link

phlbrz commented Apr 24, 2024

Hello all,

After install packetfence, I'm unable to ssh to the VM, because daemon.json has network (e.g: bip, base) default value.

It would be better to set a customized value before install or, if not possible, after install change the values in the UI.

Default example from docker daemon.json at /etc/docker/daemon.json:

{
    "debug": true,
    "bip": "192.169.1.1/24",
    "default-address-pools": [{
      "base": "192.169.0.0/16",
      "size": 16
    }],
    ...
}

Customized example:

{
    "debug": true,
    "bip": "10.1.0.1/24",
    "default-address-pools": [{
      "base": "10.1.0.0/16",
      "size": 16
    }],
    ...
}

Alternative:

It's simple to do after installation if you're at the VM already, I have less than 30 seconds window to ssh before systemd docker go up.

@JeGoi
Copy link
Contributor

JeGoi commented Apr 30, 2024

Hi there,
Sorry but I do not get your point, we already have custom config for PF:
https://github.com/inverse-inc/packetfence/blob/devel/containers/daemon.json
Results:

cat /etc/docker/daemon.json
{
  "log-driver": "none",
  "bip": "100.64.0.1/24",
  "default-address-pools": [
    {
      "base": "100.64.0.0/10",
      "size": 24
    }
  ]
}

@JeGoi JeGoi closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants