mirror of
https://github.com/moby/moby.git
synced 2026-08-04 23:21:00 +00:00
daemon/containerd: containerConfigToOciImageConfig: add ArgsEscaped
The OCI image-spec now also provides ArgsEscaped for backward compatibility with the option used by Docker. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -383,14 +383,15 @@ func storeJson(ctx context.Context, cs content.Ingester, mt string, obj interfac
|
||||
|
||||
func containerConfigToOciImageConfig(cfg *container.Config) ocispec.ImageConfig {
|
||||
ociCfg := ocispec.ImageConfig{
|
||||
User: cfg.User,
|
||||
Env: cfg.Env,
|
||||
Entrypoint: cfg.Entrypoint,
|
||||
Cmd: cfg.Cmd,
|
||||
Volumes: cfg.Volumes,
|
||||
WorkingDir: cfg.WorkingDir,
|
||||
Labels: cfg.Labels,
|
||||
StopSignal: cfg.StopSignal,
|
||||
User: cfg.User,
|
||||
Env: cfg.Env,
|
||||
Entrypoint: cfg.Entrypoint,
|
||||
Cmd: cfg.Cmd,
|
||||
Volumes: cfg.Volumes,
|
||||
WorkingDir: cfg.WorkingDir,
|
||||
Labels: cfg.Labels,
|
||||
StopSignal: cfg.StopSignal,
|
||||
ArgsEscaped: cfg.ArgsEscaped,
|
||||
}
|
||||
for k, v := range cfg.ExposedPorts {
|
||||
ociCfg.ExposedPorts[string(k)] = v
|
||||
|
||||
Reference in New Issue
Block a user