what’s the difference between ‘docker exec’ and ‘docker container exec’
They are the same. In spite of the the more verbose docker container exec
, the command is more accurate because the exec
sub command is applicable for containers, contextually. Similarly, docker ps
= docker container ps
and probably some others too.