Welcome to the Linux Foundation Forum!

Mistake in Lab 6.2

There is a mistake. The line

docker container rm -f 'docker container ls -q'

does not work and should read

docker container rm -f $(docker container ls -q)

Comments

  • chrispokorni
    chrispokorni Posts: 2,349
    edited June 2022

    Hi @gustavo.lucenagomez,

    Thank you for reporting this typo.

    During the formatting process, the intended back quote ( ` ) converted into a single quote ( ' ). While they may look the similar in some cases, they are clearly interpreted by the terminal in distinct ways.

    The intended syntax should read back quotes ( ` ) instead of single quotes ( ' ), as such:

    command1 `command2`
    

    The suggested command is also correct, and it may be incorporated as an alternative in future course update releases, to avoid back quote/single quote ambiguities:

    command1 $(command2)
    

    Regards,
    -Chris

  • fcioanca
    fcioanca Posts: 2,150

    The backquote has been corrected in lab 6.2. Thank you for flagging this typo.

Categories

Upcoming Training