Boa noite pessoal,
Alguém passou por isso e/ou pode me ajudar com a seguinte situação: Ao criar um container ubuntu, com mapeamento, não importa o mapeamento que eu faça, não tenho permissão para fazer nada nesse ubuntu da imagem. Segue console output para ilustrar:
Obrigado.
imacellone@localhost ~ sudo docker ps -a
CONTAINER ID IMAGE
f279ebca1d38 ubuntu
0b304b088a65 ubuntu
5c1ce379be2d ubuntu
516c11aa7f1a ubuntu
6a3bf04df08d ubuntu
826826a57d6f ubuntu
imacellone@localhost ~ sudo docker container prune -f
Deleted Containers:
f279ebca1d38fe324aa584244746e3623d4ef2fff03efc3f27f1ebd2ee41250c
0b304b088a65840394f3df6ef759de2d1f1187e4f842e525105c8a0d53fc1123
5c1ce379be2dd9029a9263d78d9688442e1a8a4fbc3e4178e5d6e1d445b68e22
516c11aa7f1a293ba8fdfea1710b1413037779f7dc28c54798448874e458b127
6a3bf04df08dcb0322d982b6a5add4035ec55b3cd264361eb1f2c97f9c9e7e3a
826826a57d6fea4407e351e2b6bd01298b0306b69003750e5d5f11566c3e8733
Total reclaimed space: 202 B
imacellone@localhost ~
imacellone@localhost ~
imacellone@localhost ~ sudo chmod 777 ~/Desktop/www
imacellone@localhost ~
imacellone@localhost ~ sudo docker run -it -v "/home/imacellone/Desktop/www:/home/www" ubuntu
root@44c8a816f742:/#
root@44c8a816f742:/#
root@44c8a816f742:/# cd home/www/
root@44c8a816f742:/home/www#
root@44c8a816f742:/home/www# touch test.txt
touch: cannot touch 'test.txt': Permission denied
root@44c8a816f742:/home/www#
root@44c8a816f742:/home/www# ll
ls: cannot open directory '.': Permission denied
root@44c8a816f742:/home/www#
root@44c8a816f742:/home/www# ls
ls: cannot open directory '.': Permission denied
root@44c8a816f742:/home/www# cd ..; chmod 777 www
chmod: changing permissions of 'www': Permission denied
root@44c8a816f742:/home#
root@44c8a816f742:/home# sudo su
bash: sudo: command not found
root@44c8a816f742:/home#
root@44c8a816f742:/home# ll
total 20
drwxr-xr-x. 1 root root 4096 Jan 23 01:16 ./
drwxr-xr-x. 1 root root 4096 Jan 23 01:16 ../
drwxrwxrwx. 2 root root 4096 Jan 23 01:05 www/
root@44c8a816f742:/home# exit
imacellone@localhost ~
imacellone@localhost ~
imacellone@localhost ~