Skip to content

Commit

Permalink
replace: Force containers to use image's entrypoint
Browse files Browse the repository at this point in the history
Before, we would copy the previous container's entrypoint when
replacing, causing the `dksnap` boot script to not get run.
  • Loading branch information
kklin committed Feb 8, 2020
1 parent 010386f commit 9cf2bf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions info.go
Expand Up @@ -250,6 +250,9 @@ func (ui *infoUI) replaceContainer(ctx context.Context, old Container, snap *sna
containerConfig.Image = snap.ImageNames[0]
}

// Force the container to use the snapshot's entrypoint.
containerConfig.Entrypoint = nil

networkingConfig := &network.NetworkingConfig{
EndpointsConfig: old.NetworkSettings.Networks,
}
Expand Down

0 comments on commit 9cf2bf8

Please sign in to comment.