docs icon indicating copy to clipboard operation
docs copied to clipboard

improved code sample

Open zombiedk opened this issue 2 years ago • 3 comments

Is this a docs issue?

  • [X] My issue is about the documentation content or website

Type of issue

Other

Description

the code sample in "3. Use the following command to set up the repository:" could be more userfrindly

Location

https://docs.docker.com/engine/security/rootless/

Suggestion

change this

echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

to this

sudo cat > /etc/apt/sources.list.d/docker.list << EOL
deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable
EOL

zombiedk avatar Jul 14 '23 08:07 zombiedk

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robot[bot] avatar Oct 16 '23 01:10 docker-robot[bot]

/remove-lifecycle stale

zombiedk avatar Oct 22 '23 22:10 zombiedk

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

docker-robot[bot] avatar Mar 15 '24 01:03 docker-robot[bot]

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robot[bot] avatar Apr 28 '24 03:04 docker-robot[bot]