Skip to content

Instantly share code, notes, and snippets.

@spboyer
Created October 12, 2017 21:57
Show Gist options
  • Select an option

  • Save spboyer/657e3129c09a683dcececb3c9945a008 to your computer and use it in GitHub Desktop.

Select an option

Save spboyer/657e3129c09a683dcececb3c9945a008 to your computer and use it in GitHub Desktop.
windows container on ACI
shayne@Azure:~$ az container show -n magic8ball -g wincontainers
{
"containers": [
{
"command": null,
"environmentVariables": [],
"image": "mvcrandomanswergeneratortest.azurecr.io/mvcrandomanswergenerator:20171012072842",
"instanceView": {
"currentState": {
"detailStatus": "",
"exitCode": null,
"finishTime": null,
"startTime": "2017-10-12T21:38:25+00:00",
"state": "Running"
},
"events": [
{
"count": 1,
"firstTimestamp": "2017-10-12T21:19:40+00:00",
"lastTimestamp": "2017-10-12T21:19:40+00:00",
"message": "Pulling: pulling image \"mvcrandomanswergeneratortest.azurecr.io/mvcrandomanswergenerator:20171012072842\"",
"type": "Normal"
},
{
"count": 1,
"firstTimestamp": "2017-10-12T21:37:02+00:00",
"lastTimestamp": "2017-10-12T21:37:02+00:00",
"message": "Pulled: Successfully pulled image \"mvcrandomanswergeneratortest.azurecr.io/mvcrandomanswergenerator:20171012072842\"",
"type": "Normal"
},
{
"count": 1,
"firstTimestamp": "2017-10-12T21:37:03+00:00",
"lastTimestamp": "2017-10-12T21:37:03+00:00",
"message": "Created: Created container with docker id f28b2c88a871",
"type": "Normal"
},
{
"count": 1,
"firstTimestamp": "2017-10-12T21:37:32+00:00",
"lastTimestamp": "2017-10-12T21:37:32+00:00",
"message": "Started: Started container with docker id f28b2c88a871",
"type": "Normal"
},
{
"count": 2,
"firstTimestamp": "2017-10-12T21:37:36+00:00",
"lastTimestamp": "2017-10-12T21:38:16+00:00",
"message": "Pulled: Container image \"mvcrandomanswergeneratortest.azurecr.io/mvcrandomanswergenerator:20171012072842\" already present on machine",
"type": "Normal"
},
{
"count": 1,
"firstTimestamp": "2017-10-12T21:37:37+00:00",
"lastTimestamp": "2017-10-12T21:37:37+00:00",
"message": "Created: Created container with docker id d40c78901b23",
"type": "Normal"
},
{
"count": 1,
"firstTimestamp": "2017-10-12T21:37:50+00:00",
"lastTimestamp": "2017-10-12T21:37:50+00:00",
"message": "Started: Started container with docker id d40c78901b23",
"type": "Normal"
},
{
"count": 1,
"firstTimestamp": "2017-10-12T21:38:16+00:00",
"lastTimestamp": "2017-10-12T21:38:16+00:00",
"message": "Created: Created container with docker id 435ab28985c6",
"type": "Normal"
},
{
"count": 1,
"firstTimestamp": "2017-10-12T21:38:26+00:00",
"lastTimestamp": "2017-10-12T21:38:26+00:00",
"message": "Started: Started container with docker id 435ab28985c6",
"type": "Normal"
}
],
"previousState": {
"detailStatus": "Error",
"exitCode": -2147023844,
"finishTime": "2017-10-12T21:37:58+00:00",
"startTime": "2017-10-12T21:37:50+00:00",
"state": "Terminated"
},
"restartCount": 2
},
"name": "magic8ball",
"ports": [
{
"port": 80
}
],
"resources": {
"limits": null,
"requests": {
"cpu": 1.0,
"memoryInGb": 1.5
}
},
"volumeMounts": null
}
],
"id": "/subscriptions/5ca082f3-38f2-4bb0-b0a4-c401184ae3a8/resourceGroups/wincontainers/providers/Microsoft.ContainerInstance/containerGroups/magic8ball",
"imageRegistryCredentials": [
{
"password": null,
"server": "mvcrandomanswergeneratortest.azurecr.io",
"username": "MVCRandomAnswerGeneratorTest"
}
],
"ipAddress": {
"ip": "40.71.254.234",
"ports": [
{
"port": 80,
"protocol": "TCP"
}
]
},
"location": "eastus",
"name": "magic8ball",
"osType": "Windows",
"provisioningState": "Succeeded",
"resourceGroup": "wincontainers",
"restartPolicy": null,
"state": "Running",
"tags": null,
"type": "Microsoft.ContainerInstance/containerGroups",
"volumes": null
}
shayne@Azure:~$ az container logs -n magic8ball -g wincontainers
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
ERROR ( message:Cannot find requested collection element. )
Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment