diff --git a/frontend/src/components/log/container/index.vue b/frontend/src/components/log/container/index.vue index dbf59509bfce..325f2fc6984c 100644 --- a/frontend/src/components/log/container/index.vue +++ b/frontend/src/components/log/container/index.vue @@ -1,5 +1,5 @@ - + + diff --git a/frontend/src/views/container/container/inspect/index.vue b/frontend/src/views/container/container/inspect/index.vue index 4da5765b2501..b0b62be13a77 100644 --- a/frontend/src/views/container/container/inspect/index.vue +++ b/frontend/src/views/container/container/inspect/index.vue @@ -192,6 +192,10 @@ const acceptParams = (props: DialogProps): void => { inspectData.value = props.data; } rawJson.value = JSON.stringify(inspectData.value, null, 2); + + if (!ports.value.length) { + ports.value = Object.keys(inspectData.value?.Config?.ExposedPorts || {}); + } } catch (e) { console.error('Failed to parse inspect data:', e); }