mirror of
https://github.com/coder/coder.git
synced 2026-06-03 21:18:24 +00:00
75b27e8f19
* Improves separation of concerns between `runDockerInspect` and `convertDockerInspect`: `runDockerInspect` now just runs the command and returns the output, while `convertDockerInspect` now does all of the conversion and parsing logic. * Improves testing of `convertDockerInspect` using real test fixtures. * Fixes issue where the container port is returned instead of the host port. * Updates UI to link to correct host port. Container port is still displayed in the button text, but the HostIP:HostPort is shown in a popover. * Adds stories for workspace agent UI
52 lines
726 B
JSON
52 lines
726 B
JSON
[
|
|
{
|
|
"Id": "a",
|
|
"Created": "2025-03-11T17:56:34.842164541Z",
|
|
"State": {
|
|
"Running": true,
|
|
"ExitCode": 0,
|
|
"Error": ""
|
|
},
|
|
"Name": "/a",
|
|
"Mounts": [],
|
|
"Config": {
|
|
"Image": "debian:bookworm",
|
|
"Labels": {}
|
|
},
|
|
"NetworkSettings": {
|
|
"Ports": {
|
|
"8001/tcp": [
|
|
{
|
|
"HostIp": "0.0.0.0",
|
|
"HostPort": "8000"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Id": "b",
|
|
"Created": "2025-03-11T17:56:34.842164541Z",
|
|
"State": {
|
|
"Running": true,
|
|
"ExitCode": 0,
|
|
"Error": ""
|
|
},
|
|
"Name": "/b",
|
|
"Config": {
|
|
"Image": "debian:bookworm",
|
|
"Labels": {}
|
|
},
|
|
"NetworkSettings": {
|
|
"Ports": {
|
|
"8001/tcp": [
|
|
{
|
|
"HostIp": "::",
|
|
"HostPort": "8000"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|