Don't spam warnings when stopped container discovered (#530)
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/go
|
||||||
|
{
|
||||||
|
"name": "Go",
|
||||||
|
// Use bookworm due to
|
||||||
|
// (!) The 'moby' option is not supported on Debian 'trixie' because 'moby-cli' and related system packages have been removed from that distribution.
|
||||||
|
// (!) To continue, either set the feature option '"moby": false' or use a different base image (for example: 'debian:bookworm' or 'ubuntu-24.04').
|
||||||
|
"image": "golang:1.25-bookworm",
|
||||||
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
|
"features": {
|
||||||
|
// For in-docker discovery testing
|
||||||
|
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
|
||||||
|
},
|
||||||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
"forwardPorts": [
|
||||||
|
25565
|
||||||
|
],
|
||||||
|
|
||||||
|
containerEnv: {
|
||||||
|
"GOROOT": "/usr/local/go"
|
||||||
|
},
|
||||||
|
|
||||||
|
// Configure tool-specific properties.
|
||||||
|
"customizations": {
|
||||||
|
"jetbrains": {
|
||||||
|
"backend": "IntelliJ",
|
||||||
|
"plugins": [
|
||||||
|
"org.jetbrains.plugins.go"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"golang.go"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -494,7 +494,7 @@ func (w *dockerWatcherImpl) parseContainerData(container *container.InspectRespo
|
|||||||
if container.State != nil && !container.State.Running {
|
if container.State != nil && !container.State.Running {
|
||||||
if !w.config.autoScaleUp {
|
if !w.config.autoScaleUp {
|
||||||
logrus.WithFields(logrus.Fields{"containerId": container.ID, "containerNames": container.Name}).
|
logrus.WithFields(logrus.Fields{"containerId": container.ID, "containerNames": container.Name}).
|
||||||
Warnf("ignoring container, not running and auto scale up is disabled")
|
Debugf("ignoring container, not running and auto scale up is disabled")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
data.notRunning = true
|
data.notRunning = true
|
||||||
|
|||||||
Reference in New Issue
Block a user