You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last sudo makes sure cat is run with root privileges but not the redirection of the output >. Reproduce:
(run as non-root user)
$ sudo echo"test">/usr/share/keyrings/docker-archive-keyring.gpg
bash: /usr/share/keyrings/docker-archive-keyring.gpg: Permission denied
# but this works
sudo sh -c 'echo "test" >/usr/share/keyrings/docker-archive-keyring.gpg'
The text was updated successfully, but these errors were encountered:
jimmykarily
added a commit
to jimmykarily/actions-setup-docker
that referenced
this issue
Apr 28, 2023
Here: https://github.com/docker-practice/actions-setup-docker/blob/fd7ecdac7caf8e2c541a48c9bcc280aae59a8461/lib/setup-docker.js#LL290C91-L290C91
The last
sudo
makes surecat
is run with root privileges but not the redirection of the output>
. Reproduce:(run as non-root user)
The text was updated successfully, but these errors were encountered: