Closed vipnaik closed 5 years ago
As the error suggests, you are not root. In general, you don't want to be installing software in a running container. If you want to add new packages, do so in a Dockerfile when you are building the image. You can then use the USER
directive to switch to root
and then back to the WAS
user.
Hi @davidcurrie , Thanks. I will try that.
any luck with that @vipnaik?
Closing, re-open if needed
I was able to run container successfully using image ibmcom/websphere-traditional:8.5.5.12-install. Server is running. Now I am inside container and want to install new softwares like unzip and wget using apt-get. But while trying that I am getting below error:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?