Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Create Container: How to set a Static IP  #13

@nodecentral

Description

@nodecentral

Hi

Please can you let me know what needs to be added within the .json to request that the container is given a static IP.

I have the following for dhcp, so I’m guessing I would change that to "mode":"static", but I’m stuck after that..

curl -sq -XPOST -b cookies.txt -d '{ "type": "docker", "name": "teedy-bridge", "image": "jdreinhardt/teedy", "tag": "1.9", "autostart": true, "environment": [ "TZ=Europe/London" ], "network": {"mode": "bridge", "bridge": {"mode":"dhcp","interface": {"name":"eth0"}}}, "resource": { "limit": { "cputime": 250, "cpuweight": 250, "memory": "2048" } }, "volume": { "host": { "/share/VM/teedy": { "bind": "/data", "rw": true } } } }' http://127.0.0.1:8080/containerstation/api/v1/container

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions