command Docker Exec Path-based Commands TL;DR: Use sh -c "command with arguments" I've tried to execute docker exec <container> du / in order to see the size used by a container's logs. Unfortunately, this resulted in an error along the lines: du: C:/Program Files/Git: No