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 script fail on line if ! grep "^$(id -un):\|^$(id -u):" /etc/subuid >/dev/null 2>&1; then
due to the presence of a backslash character in the output of the command "id -un"
Steps to reproduce the behavior
create and use a user with a backslash in his name
launch the command line : curl -fsSL https://get.docker.com/rootless | sh
I have try to fix the lines for subuid and subgid detection using sed but it is not sufficient grep "^$(id -un | sed -e "s/[\]/\\\\\\\\/g"):" /etc/subuid
Expected behavior
Following the documentation https://docs.docker.com/engine/security/rootless/
the command below should enable the rootless mode for docker
curl -fsSL https://get.docker.com/rootless | sh
Actual behavior
the script fail on line
if ! grep "^$(id -un):\|^$(id -u):" /etc/subuid >/dev/null 2>&1; then
due to the presence of a backslash character in the output of the command "
id -un
"Steps to reproduce the behavior
create and use a user with a backslash in his name
launch the command line :
curl -fsSL https://get.docker.com/rootless | sh
I have try to fix the lines for subuid and subgid detection using sed but it is not sufficient
grep "^$(id -un | sed -e "s/[\]/\\\\\\\\/g"):" /etc/subuid
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)
aws workspace
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
The text was updated successfully, but these errors were encountered: