Skip to content

Conversation

@firmianay
Copy link

Fix a weird thing that happened in Docker

root@82f5b62df3a2:~# cat /etc/lsb-release 
DISTRIB_DESCRIPTION="Ubuntu 16.04.7 LTS"
root@82f5b62df3a2:~# sh -c 'echo $UID'

root@82f5b62df3a2:~# bash -c 'echo $UID'
0
root@82f5b62df3a2:~# sh -c 'echo `id -u`'
0
root@82f5b62df3a2:~# bash -c 'echo `id -u`'
0

root@82f5b62df3a2:~# cat /etc/lsb-release 
DISTRIB_DESCRIPTION="Ubuntu 16.04.7 LTS"
root@82f5b62df3a2:~# sh -c 'echo $UID'

root@82f5b62df3a2:~# bash -c 'echo $UID'
0
root@82f5b62df3a2:~# sh -c 'echo `id -u`'
0
root@82f5b62df3a2:~# bash -c 'echo `id -u`'
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant