portainer的安装

1
docker pull portainer/portainer:latest

2、
docker volume create portainer_data

3、
docker run -d -p 9000:9000 -p 8000:8000 --privileged=true  --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data docker.io/portainer/portainer:latest

portainer的安装_第1张图片

 

{
    "AppArmorProfile": "",
    "Args": [
        "-Djava.security.egd=file:/dev/./urandom",
        "-jar",
        "/app.jar"
    ],
    "Config": {
        "ArgsEscaped": true,
        "AttachStderr": false,
        "AttachStdin": false,
        "AttachStdout": false,
        "Cmd": null,
        "Domainname": "",
        "Entrypoint": [
            "java",
            "-Djava.security.egd=file:/dev/./urandom",
            "-jar",
            "/app.jar"
        ],
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin",
            "LANG=C.UTF-8",
            "JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk",
            "JAVA_VERSION=8u111",
            "JAVA_ALPINE_VERSION=8.111.14-r0"
        ],
        "ExposedPorts": {
            "8761/tcp": {}
        },
        "Hostname": "100f5c966da0",
        "Image": "eureka:0.0.1",
        "Labels": {},
        "OnBuild": null,
        "OpenStdin": false,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": null,
        "WorkingDir": ""
    },
    "Created": "2019-10-18T23:36:31.809908293Z",
    "Driver": "overlay2",
    "ExecIDs": [
        "3640854a0b97a31fc4fa457eee8d5b4439e0cbc094e802abefb61bbf5acd096b"
    ],
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/acb8b9c720e0a5f2e7eeab3e7edbf9c14c19dd9beb6a95ff3abb711de91950dd-init/diff:/var/lib/docker/overlay2/29b144a996034e98645ad336ae6f16d6dfb2eb0995505a8c415ff6515f0a0639/diff:/var/lib/docker/overlay2/316693fa2f7f4d7918d557daca80beb20b3d82e3481a3c8558e9433d314acae5/diff:/var/lib/docker/overlay2/851307f1e9bc6e487488bf57ba81a23f1220f63010f4847306a46e6ca7f522bf/diff:/var/lib/docker/overlay2/b13d5340003406449bae03d3762e8ecfb17086427b9dd40b8901641372f6a76a/diff",
            "MergedDir": "/var/lib/docker/overlay2/acb8b9c720e0a5f2e7eeab3e7edbf9c14c19dd9beb6a95ff3abb711de91950dd/merged",
            "UpperDir": "/var/lib/docker/overlay2/acb8b9c720e0a5f2e7eeab3e7edbf9c14c19dd9beb6a95ff3abb711de91950dd/diff",
            "WorkDir": "/var/lib/docker/overlay2/acb8b9c720e0a5f2e7eeab3e7edbf9c14c19dd9beb6a95ff3abb711de91950dd/work"
        },
        "Name": "overlay2"
    },
    "HostConfig": {
        "AutoRemove": false,
        "Binds": null,
        "BlkioDeviceReadBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceWriteIOps": null,
        "BlkioWeight": 0,
        "BlkioWeightDevice": null,
        "CapAdd": null,
        "CapDrop": null,
        "Cgroup": "",
        "CgroupParent": "",
        "ConsoleSize": [
            0,
            0
        ],
        "ContainerIDFile": "",
        "CpuCount": 0,
        "CpuPercent": 0,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpuShares": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "Devices": [],
        "DiskQuota": 0,
        "Dns": [],
        "DnsOptions": [],
        "DnsSearch": [],
        "ExtraHosts": null,
        "GroupAdd": null,
        "IOMaximumBandwidth": 0,
        "IOMaximumIOps": 0,
        "IpcMode": "",
        "Isolation": "",
        "KernelMemory": 0,
        "Links": null,
        "LogConfig": {
            "Config": {},
            "Type": "journald"
        },
        "Memory": 0,
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "MemorySwappiness": -1,
        "NanoCpus": 0,
        "NetworkMode": "default",
        "OomKillDisable": false,
        "OomScoreAdj": 0,
        "PidMode": "",
        "PidsLimit": 0,
        "PortBindings": {
            "8761/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "8761"
                }
            ]
        },
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyRootfs": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": "no"
        },
        "Runtime": "docker-runc",
        "SecurityOpt": null,
        "ShmSize": 67108864,
        "UTSMode": "",
        "Ulimits": null,
        "UsernsMode": "",
        "VolumeDriver": "",
        "VolumesFrom": null
    },
    "HostnamePath": "/var/lib/docker/containers/100f5c966da0580790a7a4f2e1905c063d3ec7468ed5d6257e01cecbc4822012/hostname",
    "HostsPath": "/var/lib/docker/containers/100f5c966da0580790a7a4f2e1905c063d3ec7468ed5d6257e01cecbc4822012/hosts",
    "Id": "100f5c966da0580790a7a4f2e1905c063d3ec7468ed5d6257e01cecbc4822012",
    "Image": "sha256:d5abc1ac30f5c27bd3e1f8523e9225b045e2d2f7ce95ddbe9a1d2cf19c52be7a",
    "LogPath": "",
    "MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c179,c703",
    "Mounts": [],
    "Name": "/xenodochial_payne",
    "NetworkSettings": {
        "Bridge": "",
        "EndpointID": "0dd8e16d5041016bb8950bf9ba56c402b768dc8d61c4c1c038ef1f7a44ad6f61",
        "Gateway": "172.17.0.1",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "HairpinMode": false,
        "IPAddress": "172.17.0.4",
        "IPPrefixLen": 16,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "MacAddress": "02:42:ac:11:00:04",
        "Networks": {
            "bridge": {
                "Aliases": null,
                "EndpointID": "0dd8e16d5041016bb8950bf9ba56c402b768dc8d61c4c1c038ef1f7a44ad6f61",
                "Gateway": "172.17.0.1",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "IPAMConfig": null,
                "IPAddress": "172.17.0.4",
                "IPPrefixLen": 16,
                "IPv6Gateway": "",
                "Links": null,
                "MacAddress": "02:42:ac:11:00:04",
                "NetworkID": "945e330805acc568c949d3548ee03c4c0b5234959df775e78c9761b4ab05f959"
            }
        },
        "Ports": {
            "8761/tcp": [
                {
                    "HostIp": "0.0.0.0",
                    "HostPort": "8761"
                }
            ]
        },
        "SandboxID": "ca05f4e99fd3033f2854c596974304cc09b47ba6f7cef305f2bf6f6d082beee9",
        "SandboxKey": "/var/run/docker/netns/ca05f4e99fd3",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null
    },
    "Path": "java",
    "ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c179,c703",
    "ResolvConfPath": "/var/lib/docker/containers/100f5c966da0580790a7a4f2e1905c063d3ec7468ed5d6257e01cecbc4822012/resolv.conf",
    "RestartCount": 0,
    "State": {
        "Dead": false,
        "Error": "",
        "ExitCode": 0,
        "FinishedAt": "2019-10-20T21:14:30.551064146Z",
        "OOMKilled": false,
        "Paused": false,
        "Pid": 1944,
        "Restarting": false,
        "Running": true,
        "StartedAt": "2019-10-22T23:13:59.600294148Z",
        "Status": "running"
    }
}

portainer的安装_第2张图片

你可能感兴趣的:(Docker)