mirror of https://github.com/docker/compose.git
support service entrypoint set as empty slice (override Dockerfile ENTRYPOINT)
close https://github.com/docker/compose/issues/8581 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
2ceb176500
commit
0e0291510c
|
@ -251,10 +251,10 @@ func (s *composeService) getCreateOptions(ctx context.Context, p *types.Project,
|
|||
runCmd strslice.StrSlice
|
||||
entrypoint strslice.StrSlice
|
||||
)
|
||||
if len(service.Command) > 0 {
|
||||
if service.Command != nil {
|
||||
runCmd = strslice.StrSlice(service.Command)
|
||||
}
|
||||
if len(service.Entrypoint) > 0 {
|
||||
if service.Entrypoint != nil {
|
||||
entrypoint = strslice.StrSlice(service.Entrypoint)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue