summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_internal.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go
index e34a79eb1..b33ac78e8 100644
--- a/libpod/container_internal.go
+++ b/libpod/container_internal.go
@@ -243,7 +243,9 @@ func (c *Container) setupStorage(ctx context.Context) error {
// Set the default Entrypoint and Command
c.config.Entrypoint = containerInfo.Config.Config.Entrypoint
- c.config.Command = containerInfo.Config.Config.Cmd
+ if len(c.config.Command) == 0 {
+ c.config.Command = containerInfo.Config.Config.Cmd
+ }
artifacts := filepath.Join(c.config.StaticDir, artifactsDir)
if err := os.MkdirAll(artifacts, 0755); err != nil {