Hiding Legacy Commands

If you want to hide legacy commands you may do so by running export DOCKER_HIDE_LEGACY_COMMANDS=true.

You can verify that this has worked by running docker. You will see a much shorter list of management commands and commands.

You can see that the run command is still available but you should use docker container run rather than just docker run because it makes it more clear which resource you are interacting with.

If you want legacy commands to be automatically hidden you can add the export DOCKER_HIDE_LEGACY_COMMANDS=true command to your bash profile in your home directory. Doing this will help you avoid getting used to legacy commands.

 

I finished! On to the next chapter