Skip to content

Instantly share code, notes, and snippets.

@yuyasugano
Created October 26, 2020 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuyasugano/f03d660c44c9d6c1b4b14a41f6c18d49 to your computer and use it in GitHub Desktop.
Save yuyasugano/f03d660c44c9d6c1b4b14a41f6c18d49 to your computer and use it in GitHub Desktop.
docker-machine inspece command
$ docker-machine inspect --format='{{prettyjson .Driver}}' aws-sandbox
{
"AMI": "ami-bcb7f6da",
"AccessKey": "",
"BlockDurationMinutes": 0,
"DeviceName": "/dev/sda1",
"DisableSSL": false,
"Endpoint": "",
"ExistingKey": false,
"IPAddress": "3.112.224.179",
"IamInstanceProfile": "",
"Id": "d21f15b0017d4fababf198b253f07300",
"InstanceId": "i-0b32b961b6ea5a493",
"InstanceType": "t2.micro",
"KeyName": "aws-sandbox",
"MachineName": "aws-sandbox",
"Monitoring": false,
"OpenPorts": [
"8000"
],
"PrivateIPAddress": "172.31.38.78",
"PrivateIPOnly": false,
"Region": "ap-northeast-1",
"RequestSpotInstance": false,
"ReservationId": "",
"RetryCount": 5,
"RootSize": 16,
"SSHKeyID": 0,
"SSHKeyPath": "/home/ether/.docker/machine/machines/aws-sandbox/id_rsa",
"SSHPort": 22,
"SSHPrivateKeyPath": "",
"SSHUser": "ubuntu",
"SecretKey": "",
"SecurityGroupId": "",
"SecurityGroupIds": [
"sg-05f77556f6871fccb"
],
"SecurityGroupName": "",
"SecurityGroupNames": [
"docker-machine"
],
"SecurityGroupReadOnly": false,
"SessionToken": "",
"SpotPrice": "0.50",
"StorePath": "/home/ether/.docker/machine",
"SubnetId": "subnet-a8acbde1",
"SwarmDiscovery": "",
"SwarmHost": "tcp://0.0.0.0:3376",
"SwarmMaster": false,
"Tags": "",
"UseEbsOptimizedInstance": false,
"UsePrivateIP": false,
"UserDataFile": "",
"VolumeType": "gp2",
"VpcId": "vpc-0f386c68",
"Zone": "a"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment