Merge pull request #988 from docker/feat-platform

Add platform when running containers
This commit is contained in:
Guillaume Tardif 2020-12-02 13:24:07 +01:00 committed by GitHub
commit 4270f383a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 153 additions and 100 deletions

View file

@ -21,6 +21,7 @@ import (
"io"
"github.com/compose-spec/compose-go/types"
specs "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/docker/compose-cli/formatter"
)
@ -114,6 +115,8 @@ type ContainerConfig struct {
AutoRemove bool
// Healthcheck contains the command and interval of the checks
Healthcheck Healthcheck
// Platform contains the platform information
Platform *specs.Platform
}
// Healthcheck defines the configuration of a healthcheck