Clear Docker's container logs For ZSH use noglobto escape the wildcards. noglob truncate -s 0 /var/lib/docker/containers/*/*-json.log