Skip to content

Commit

Permalink
Should fix #1317 by making sure a valid actor.id is present
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Jun 28, 2021
1 parent 690fdb9 commit 4a26753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/client.go
Expand Up @@ -203,7 +203,7 @@ func (d *dockerClient) Events(ctx context.Context) (<-chan ContainerEvent, <-cha
return
}

if message.Type == "container" {
if message.Type == "container" && len(message.Actor.ID) > 0 {
messages <- ContainerEvent{
ActorID: message.Actor.ID[:12],
Name: message.Action,
Expand Down

0 comments on commit 4a26753

Please sign in to comment.