Skip to content

Instantly share code, notes, and snippets.

@dhrp
Created November 8, 2018 12:50
Show Gist options
  • Save dhrp/a931f143cf170c4357a3f06901952e63 to your computer and use it in GitHub Desktop.
Save dhrp/a931f143cf170c4357a3f06901952e63 to your computer and use it in GitHub Desktop.
Docker inspect AWS geth daemon output
[
{
"Id": "be730673bb1ed2db8160a116dc707e3eb72c1542c749b084ad1bb5f15a8b075c",
"Created": "2018-11-08T12:48:44.750070611Z",
"Path": "/usr/bin/node",
"Args": [
"/opt/geth-daemon/build/index.js",
"--nodiscover",
"--peer-table-name",
"eth-auto-EthereumCommonStack-YUOAW65KR29A-EthereumECSStack-G0RBZQHB26EZ-DynamoPeerTable-XSXJRR6DAIOV",
"--networkid",
"1234",
"--initial-difficulty",
"1",
"--log-level",
"info",
"--rpc",
"--rpcapi web3,net,eth",
"--rpcaddr 0.0.0.0",
"--rpcvhosts *",
"--rpccorsdomain *",
"--ws",
"--wsapi web3,net,eth",
"--wsaddr 0.0.0.0",
"--wsport 8546",
"--wsorigins *",
"--initial-block-gas-limit",
"8000000",
"--initial-account-balance",
"1000",
"--funded-accounts",
"0x605e0421276A78Ae7132Addb59372c46D1302000",
"--gasprice",
"0",
"--ethstats-ws-url ws://internal-eth-a-LoadB-XBE0B9RHPQ46-397404776.us-east-1.elb.amazonaws.com --ethstats-ws-secret duplo12345"
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 0,
"Error": "",
"StartedAt": "2018-11-08T12:48:45.278686768Z",
"FinishedAt": "2018-11-08T12:48:45.834256491Z"
},
"Image": "sha256:c22df6a74ceb91a86ea48c4d8b587faa65e03dd6414fc27adfaadacffe5f9fa3",
"ResolvConfPath": "/var/lib/docker/containers/be730673bb1ed2db8160a116dc707e3eb72c1542c749b084ad1bb5f15a8b075c/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/be730673bb1ed2db8160a116dc707e3eb72c1542c749b084ad1bb5f15a8b075c/hostname",
"HostsPath": "/var/lib/docker/containers/be730673bb1ed2db8160a116dc707e3eb72c1542c749b084ad1bb5f15a8b075c/hosts",
"LogPath": "",
"Name": "/ecs-eth-auto-Ethereum-Client-1-GethClient-eee394c8c6a9e6ae2200",
"RestartCount": 0,
"Driver": "devicemapper",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "awslogs",
"Config": {
"awslogs-group": "eth-auto-Ethereum-Client",
"awslogs-region": "us-east-1",
"awslogs-stream": "ethereum-client/GethClient/3bc28e91-1a19-4074-962c-78120a2f7d5e"
}
},
"NetworkMode": "host",
"PortBindings": {
"30303/tcp": [
{
"HostIp": "",
"HostPort": "30303"
}
],
"30303/udp": [
{
"HostIp": "",
"HostPort": "30303"
}
],
"8545/tcp": [
{
"HostIp": "",
"HostPort": "8545"
}
],
"8546/tcp": [
{
"HostIp": "",
"HostPort": "8546"
}
]
},
"RestartPolicy": {
"Name": "",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Dns": null,
"DnsOptions": null,
"DnsSearch": null,
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "shareable",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 256,
"Memory": 1073741824,
"NanoCpus": 0,
"CgroupParent": "/ecs/3bc28e91-1a19-4074-962c-78120a2f7d5e",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": null,
"DeviceCgroupRules": null,
"DiskQuota": 0,
"KernelMemory": 0,
"MemoryReservation": 268435456,
"MemorySwap": 2147483648,
"MemorySwappiness": 0,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": [
{
"Name": "nofile",
"Hard": 4096,
"Soft": 1024
}
],
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0
},
"GraphDriver": {
"Data": {
"DeviceId": "12739",
"DeviceName": "docker-202:1-263332-53ecd075e5c7af2b5a9625493a42a18d7e93bddcf715d8a8f62db6a5fd5cdfb1",
"DeviceSize": "10737418240"
},
"Name": "devicemapper"
},
"Mounts": [],
"Config": {
"Hostname": "ip-10-200-21-10",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"30303/tcp": {},
"30303/udp": {},
"8545/tcp": {},
"8546/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"CONTAINER_PLATFORM=ecs",
"AWS_EXECUTION_ENV=AWS_ECS_EC2",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"--nodiscover",
"--peer-table-name",
"eth-auto-EthereumCommonStack-YUOAW65KR29A-EthereumECSStack-G0RBZQHB26EZ-DynamoPeerTable-XSXJRR6DAIOV",
"--networkid",
"1234",
"--initial-difficulty",
"1",
"--log-level",
"info",
"--rpc",
"--rpcapi web3,net,eth",
"--rpcaddr 0.0.0.0",
"--rpcvhosts *",
"--rpccorsdomain *",
"--ws",
"--wsapi web3,net,eth",
"--wsaddr 0.0.0.0",
"--wsport 8546",
"--wsorigins *",
"--initial-block-gas-limit",
"8000000",
"--initial-account-balance",
"1000",
"--funded-accounts",
"0x605e0421276A78Ae7132Addb59372c46D1302000",
"--gasprice",
"0",
"--ethstats-ws-url ws://internal-eth-a-LoadB-XBE0B9RHPQ46-397404776.us-east-1.elb.amazonaws.com --ethstats-ws-secret duplo12345"
],
"Image": "354658284331.dkr.ecr.us-east-1.amazonaws.com/client-go:v1",
"Volumes": null,
"WorkingDir": "/opt/geth-daemon",
"Entrypoint": [
"/usr/bin/node",
"/opt/geth-daemon/build/index.js"
],
"OnBuild": null,
"Labels": {
"com.amazonaws.ecs.cluster": "eth-auto-Ethereum",
"com.amazonaws.ecs.container-name": "GethClient",
"com.amazonaws.ecs.task-arn": "arn:aws:ecs:us-east-1:185959087295:task/3bc28e91-1a19-4074-962c-78120a2f7d5e",
"com.amazonaws.ecs.task-definition-family": "eth-auto-Ethereum-Client",
"com.amazonaws.ecs.task-definition-version": "1"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "a571833579513ce248f794a1f1de8e6346aaa9441e7716de0085ddfab6f6aaad",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/default",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"host": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "1eff6c79adfec150b05055be7f4d48ec61b0375838f0ad9dcb6ed030569874d7",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"DriverOpts": null
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment