Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with apt installer #65

Closed
sprudel79 opened this issue May 20, 2020 · 4 comments
Closed

Issue with apt installer #65

sprudel79 opened this issue May 20, 2020 · 4 comments

Comments

@sprudel79
Copy link

sprudel79 commented May 20, 2020

Hi everyone,
our Dockerfile to create a customized Teamcity Docker agents starts with the following lines:

FROM jetbrains/teamcity-agent:latest
RUN apt-get update
...

Trying to build the image results in the following error:

E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/

Docker version is 19.03.09 running on Linux Mint 19.3 by the way.
Is this an issue coming from the base image?
Thanks in advance.

@kir
Copy link
Member

kir commented May 20, 2020

Hi, try inserting USER root before RUN instruction

Hope this helps,

@sprudel79
Copy link
Author

Thanks @kir , it works now again.
But out of curiosity, was there any change in the base image that has caused this behaviour?

@kir
Copy link
Member

kir commented May 20, 2020

This happens due to this change: https://youtrack.jetbrains.com/issue/TW-65785
Glad it works again for you :)

@sprudel79
Copy link
Author

Perfect, so it's crystal clear for me now.
Thanks again for the instant support.

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

No branches or pull requests

2 participants