I have launched one Ubuntu container in my Docker Engine. I tried to run cd command. But it is showing the below error.
jenkins@9cb85416d91f:~$ cd /root/
-su: cd: /root/: Permission denied
How can I solve this error?
You are trying to run your command using jenkins user. But your jenkins user does not have power to run command. So give sudo power to your jenkins user.
$ vim /etc/sudoers
jenkins ALL:(ALL) NOPASSWD: ALL
To install any software using non root ...READ MORE
You need to tag your image before ...READ MORE
Take ownership of the file or folder ...READ MORE
tag the image first and then push ...READ MORE
When you use docker-compose down, all the ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
It can work if you try to put ...READ MORE
To solve this problem, I followed advice ...READ MORE
You may get this error, if you didn't ...READ MORE
This is because of docker permission for ...READ MORE
Already have an account? Sign in.