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

  • Posts: 2,445
    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:

    1. 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:

    1. command1 $(command2)

    Regards,
    -Chris

  • Posts: 2,285

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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training