moorkop / mccy-engine

Provides a web based "Minecraft Server as a Service" (MCaaS?) to deploy Minecraft server containers on any Docker Swarm cluster or standalone Engine instance.
Apache License 2.0
12 stars 4 forks source link

Port binding to 0 doesn't seem to work on Swarm #20

Closed itzg closed 8 years ago

itzg commented 8 years ago

When deployed on mccy-staging.itzg.me:

image

itzg commented 8 years ago

...weird, it worked once when creating the previous Forge server

image

itzg commented 8 years ago

Captured the REST API invocation of a docker run ... -p 25565 ...:

{
    "Hostname": "",
    "Domainname": "",
    "User": "",
    "AttachStdin": true,
    "AttachStdout": true,
    "AttachStderr": true,
    "ExposedPorts": {
        "25565/tcp": {}
    },
    "Tty": true,
    "OpenStdin": true,
    "StdinOnce": true,
    "Env": [
        "EULA=TRUE"
    ],
    "Cmd": null,
    "Image": "itzg/minecraft-server",
    "Volumes": {},
    "WorkingDir": "",
    "Entrypoint": null,
    "OnBuild": null,
    "Labels": {},
    "StopSignal": "15",
    "HostConfig": {
        "Binds": null,
        "ContainerIDFile": "",
        "LxcConf": [],
        "Memory": 0,
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "KernelMemory": 0,
        "CpuShares": 0,
        "CpuPeriod": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "CpuQuota": 0,
        "BlkioWeight": 0,
        "OomKillDisable": false,
        "MemorySwappiness": -1,
        "Privileged": false,
        "PortBindings": {
            "25565/tcp": [
                {
                    "HostIp": "",
                    "HostPort": ""
                }
            ]
        },
        "Links": null,
        "PublishAllPorts": false,
        "Dns": [],
        "DnsOptions": [],
        "DnsSearch": [],
        "ExtraHosts": null,
        "VolumesFrom": null,
        "Devices": [],
        "NetworkMode": "default",
        "IpcMode": "",
        "PidMode": "",
        "UTSMode": "",
        "CapAdd": null,
        "CapDrop": null,
        "GroupAdd": null,
        "RestartPolicy": {
            "Name": "no",
            "MaximumRetryCount": 0
        },
        "SecurityOpt": null,
        "ReadonlyRootfs": false,
        "Ulimits": null,
        "LogConfig": {
            "Type": "",
            "Config": {}
        },
        "CgroupParent": "",
        "ConsoleSize": [
            50,
            120
        ],
        "VolumeDriver": ""
    }
}