Why can't I install py-setuptools as root in an Alpine 3.9 Docker containerWhy can't Python parse this JSON data?How to list containers in DockerHow to remove old Docker containersCopying files from Docker container to hostCopying files from host to Docker containerWhat is the difference between a Docker image and a container?From inside of a Docker container, how do I connect to the localhost of the machine?How to install gdbserver package on Alpine Docker image?ERROR: unsatisfiable constraints: while installing package in alpineBuilding Docker image as non-root user

Is there anything on the ISS that would be destroyed if that object were returned to Earth?

PhD Length: are shorter PhD degrees (from different countries) valued differently in other counter countries where PhD Is a longer process?

Avoiding dust scattering when you drill

Missing quartile in boxplot

Could the Queen overturn the UK Supreme Court ruling regarding prorogation of Parliament?

How are proofs normally constructed in a write up, in one line or split up into multiple lines?

As a team leader is it appropriate to bring in fundraiser candy?

How can Germany increase investments in Russia while EU economic sanctions against Russia are still in place?

Does the US Armed Forces refuse to recruit anyone with an IQ less than 83?

Is there a pattern for handling conflicting function parameters?

What action is recommended if your accommodation refuses to let you leave without paying additional fees?

Everyone Gets a Window Seat

GPLv3 forces us to make code available, but to who?

Can I bring this power bank on board the aircraft?

How to "Start as close to the end as possible", and why to do so?

How is this situation not a checkmate?

Generating numbers with cubes

Writing about real people - not giving offence

Why do personal finance apps focus on outgoings rather than income

Bothered by watching coworkers slacking off

Does it require less energy to reach the Sun from Pluto's orbit than from Earth's orbit?

What is the score of my Scopa hand?

How to level a picture frame hung on a single nail?

Are there types of animals that can't make the trip to space? (physiologically)



Why can't I install py-setuptools as root in an Alpine 3.9 Docker container


Why can't Python parse this JSON data?How to list containers in DockerHow to remove old Docker containersCopying files from Docker container to hostCopying files from host to Docker containerWhat is the difference between a Docker image and a container?From inside of a Docker container, how do I connect to the localhost of the machine?How to install gdbserver package on Alpine Docker image?ERROR: unsatisfiable constraints: while installing package in alpineBuilding Docker image as non-root user






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0















The issue is our corporate firewall




Origional question:



When attempting to install py2-pip or py3-pip in Alpine (Docker), it fails when installing py-setuptools with a "Permission denied" error.



I am running this as root.



/ # apk add -v py2-pip
(1/1) Installing py-setuptools (40.6.3-r0)
ERROR: py-setuptools-40.6.3-r0: Permission denied
1 error; 42 packages, 313 dirs, 8008 files, 194 MiB


This can be reproduced directly:



docker run -ti alpine sh -c 'apk update && apk add py2-pip'



docker run -ti alpine sh -c 'apk update && apk add py2-pip'
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
v3.9.2-47-ge6bacb23e0 [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.2-46-g5f44785996 [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
OK: 9758 distinct packages available
(1/12) Installing libbz2 (1.0.6-r6)
(2/12) Installing expat (2.2.6-r0)
(3/12) Installing libffi (3.2.1-r6)
(4/12) Installing gdbm (1.13-r1)
(5/12) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(6/12) Installing ncurses-terminfo (6.1_p20190105-r0)
(7/12) Installing ncurses-libs (6.1_p20190105-r0)
(8/12) Installing readline (7.0.003-r1)
(9/12) Installing sqlite-libs (3.26.0-r3)
(10/12) Installing python2 (2.7.15-r3)
(11/12) Installing py-setuptools (40.6.3-r0)
ERROR: py-setuptools-40.6.3-r0: Permission denied
(12/12) Installing py2-pip (18.1-r0)
Executing busybox-1.29.3-r10.trigger
1 error; 62 MiB in 25 packages


Seems like it's trying to get to a web resource that returns 403:



sendto(7, "GET /alpine/v3.9/main/x86_64/py-"..., 67, MSG_NOSIGNAL, NULL, 0) = 67
sendto(7, "Host: dl-cdn.alpinelinux.orgrn", 30, MSG_NOSIGNAL, NULL, 0) = 30
sendto(7, "User-Agent: libfetch/2.0rn", 26, MSG_NOSIGNAL, NULL, 0) = 26
sendto(7, "rn", 2, MSG_NOSIGNAL, NULL, 0) = 2
setsockopt(7, SOL_TCP, TCP_NODELAY, [1], 4) = 0
read(7, "HTTP/1.1 403 ForbiddenrnDate: Th"..., 1024) = 1024
close(7) = 0
wr) = 6
writev(2, [iov_base="", iov_len=0, iov_base="ERROR: ", iov_len=7], 2ERROR: ) = 7
writev(2, [iov_base="py-setuptools-40.6.3-r0: Permiss"..., iov_len=42, iov_base=NULL, iov_len=0], 2py
-setuptools-40.6.3-r0: Permission denied) = 42









share|improve this question


























  • would you like to share your dockerfile with us?

    – Efrat Levitan
    Mar 28 at 20:47











  • @Efrat Sure, but it doesn't matter. I can reproduce this directly: docker run -ti alpine sh -c 'apk update && apk add py2-pip' causes the same error, it fails when trying to install py-setuptools.

    – Ryan Fisher
    Mar 28 at 21:03






  • 1





    Ah, well actually no, I can't either: docker run -ti --user=root jenkins/jenkins:2.169-alpine sh -c 'apk update && apk add -v py2-pip' works like a charm

    – β.εηοιτ.βε
    Mar 28 at 21:32






  • 2





    docker run -ti alpine sh -c 'apk update && apk add py2-pip' went very well for me. what am i missing?

    – Efrat Levitan
    Mar 28 at 21:34






  • 1





    @RyanFisher then yes. You, Efrat and me testing it and getting it working is definitly pointing at something in your corporate network causing that.

    – β.εηοιτ.βε
    Mar 28 at 21:37


















0















The issue is our corporate firewall




Origional question:



When attempting to install py2-pip or py3-pip in Alpine (Docker), it fails when installing py-setuptools with a "Permission denied" error.



I am running this as root.



/ # apk add -v py2-pip
(1/1) Installing py-setuptools (40.6.3-r0)
ERROR: py-setuptools-40.6.3-r0: Permission denied
1 error; 42 packages, 313 dirs, 8008 files, 194 MiB


This can be reproduced directly:



docker run -ti alpine sh -c 'apk update && apk add py2-pip'



docker run -ti alpine sh -c 'apk update && apk add py2-pip'
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
v3.9.2-47-ge6bacb23e0 [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.2-46-g5f44785996 [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
OK: 9758 distinct packages available
(1/12) Installing libbz2 (1.0.6-r6)
(2/12) Installing expat (2.2.6-r0)
(3/12) Installing libffi (3.2.1-r6)
(4/12) Installing gdbm (1.13-r1)
(5/12) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(6/12) Installing ncurses-terminfo (6.1_p20190105-r0)
(7/12) Installing ncurses-libs (6.1_p20190105-r0)
(8/12) Installing readline (7.0.003-r1)
(9/12) Installing sqlite-libs (3.26.0-r3)
(10/12) Installing python2 (2.7.15-r3)
(11/12) Installing py-setuptools (40.6.3-r0)
ERROR: py-setuptools-40.6.3-r0: Permission denied
(12/12) Installing py2-pip (18.1-r0)
Executing busybox-1.29.3-r10.trigger
1 error; 62 MiB in 25 packages


Seems like it's trying to get to a web resource that returns 403:



sendto(7, "GET /alpine/v3.9/main/x86_64/py-"..., 67, MSG_NOSIGNAL, NULL, 0) = 67
sendto(7, "Host: dl-cdn.alpinelinux.orgrn", 30, MSG_NOSIGNAL, NULL, 0) = 30
sendto(7, "User-Agent: libfetch/2.0rn", 26, MSG_NOSIGNAL, NULL, 0) = 26
sendto(7, "rn", 2, MSG_NOSIGNAL, NULL, 0) = 2
setsockopt(7, SOL_TCP, TCP_NODELAY, [1], 4) = 0
read(7, "HTTP/1.1 403 ForbiddenrnDate: Th"..., 1024) = 1024
close(7) = 0
wr) = 6
writev(2, [iov_base="", iov_len=0, iov_base="ERROR: ", iov_len=7], 2ERROR: ) = 7
writev(2, [iov_base="py-setuptools-40.6.3-r0: Permiss"..., iov_len=42, iov_base=NULL, iov_len=0], 2py
-setuptools-40.6.3-r0: Permission denied) = 42









share|improve this question


























  • would you like to share your dockerfile with us?

    – Efrat Levitan
    Mar 28 at 20:47











  • @Efrat Sure, but it doesn't matter. I can reproduce this directly: docker run -ti alpine sh -c 'apk update && apk add py2-pip' causes the same error, it fails when trying to install py-setuptools.

    – Ryan Fisher
    Mar 28 at 21:03






  • 1





    Ah, well actually no, I can't either: docker run -ti --user=root jenkins/jenkins:2.169-alpine sh -c 'apk update && apk add -v py2-pip' works like a charm

    – β.εηοιτ.βε
    Mar 28 at 21:32






  • 2





    docker run -ti alpine sh -c 'apk update && apk add py2-pip' went very well for me. what am i missing?

    – Efrat Levitan
    Mar 28 at 21:34






  • 1





    @RyanFisher then yes. You, Efrat and me testing it and getting it working is definitly pointing at something in your corporate network causing that.

    – β.εηοιτ.βε
    Mar 28 at 21:37














0












0








0








The issue is our corporate firewall




Origional question:



When attempting to install py2-pip or py3-pip in Alpine (Docker), it fails when installing py-setuptools with a "Permission denied" error.



I am running this as root.



/ # apk add -v py2-pip
(1/1) Installing py-setuptools (40.6.3-r0)
ERROR: py-setuptools-40.6.3-r0: Permission denied
1 error; 42 packages, 313 dirs, 8008 files, 194 MiB


This can be reproduced directly:



docker run -ti alpine sh -c 'apk update && apk add py2-pip'



docker run -ti alpine sh -c 'apk update && apk add py2-pip'
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
v3.9.2-47-ge6bacb23e0 [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.2-46-g5f44785996 [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
OK: 9758 distinct packages available
(1/12) Installing libbz2 (1.0.6-r6)
(2/12) Installing expat (2.2.6-r0)
(3/12) Installing libffi (3.2.1-r6)
(4/12) Installing gdbm (1.13-r1)
(5/12) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(6/12) Installing ncurses-terminfo (6.1_p20190105-r0)
(7/12) Installing ncurses-libs (6.1_p20190105-r0)
(8/12) Installing readline (7.0.003-r1)
(9/12) Installing sqlite-libs (3.26.0-r3)
(10/12) Installing python2 (2.7.15-r3)
(11/12) Installing py-setuptools (40.6.3-r0)
ERROR: py-setuptools-40.6.3-r0: Permission denied
(12/12) Installing py2-pip (18.1-r0)
Executing busybox-1.29.3-r10.trigger
1 error; 62 MiB in 25 packages


Seems like it's trying to get to a web resource that returns 403:



sendto(7, "GET /alpine/v3.9/main/x86_64/py-"..., 67, MSG_NOSIGNAL, NULL, 0) = 67
sendto(7, "Host: dl-cdn.alpinelinux.orgrn", 30, MSG_NOSIGNAL, NULL, 0) = 30
sendto(7, "User-Agent: libfetch/2.0rn", 26, MSG_NOSIGNAL, NULL, 0) = 26
sendto(7, "rn", 2, MSG_NOSIGNAL, NULL, 0) = 2
setsockopt(7, SOL_TCP, TCP_NODELAY, [1], 4) = 0
read(7, "HTTP/1.1 403 ForbiddenrnDate: Th"..., 1024) = 1024
close(7) = 0
wr) = 6
writev(2, [iov_base="", iov_len=0, iov_base="ERROR: ", iov_len=7], 2ERROR: ) = 7
writev(2, [iov_base="py-setuptools-40.6.3-r0: Permiss"..., iov_len=42, iov_base=NULL, iov_len=0], 2py
-setuptools-40.6.3-r0: Permission denied) = 42









share|improve this question
















The issue is our corporate firewall




Origional question:



When attempting to install py2-pip or py3-pip in Alpine (Docker), it fails when installing py-setuptools with a "Permission denied" error.



I am running this as root.



/ # apk add -v py2-pip
(1/1) Installing py-setuptools (40.6.3-r0)
ERROR: py-setuptools-40.6.3-r0: Permission denied
1 error; 42 packages, 313 dirs, 8008 files, 194 MiB


This can be reproduced directly:



docker run -ti alpine sh -c 'apk update && apk add py2-pip'



docker run -ti alpine sh -c 'apk update && apk add py2-pip'
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
v3.9.2-47-ge6bacb23e0 [http://dl-cdn.alpinelinux.org/alpine/v3.9/main]
v3.9.2-46-g5f44785996 [http://dl-cdn.alpinelinux.org/alpine/v3.9/community]
OK: 9758 distinct packages available
(1/12) Installing libbz2 (1.0.6-r6)
(2/12) Installing expat (2.2.6-r0)
(3/12) Installing libffi (3.2.1-r6)
(4/12) Installing gdbm (1.13-r1)
(5/12) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(6/12) Installing ncurses-terminfo (6.1_p20190105-r0)
(7/12) Installing ncurses-libs (6.1_p20190105-r0)
(8/12) Installing readline (7.0.003-r1)
(9/12) Installing sqlite-libs (3.26.0-r3)
(10/12) Installing python2 (2.7.15-r3)
(11/12) Installing py-setuptools (40.6.3-r0)
ERROR: py-setuptools-40.6.3-r0: Permission denied
(12/12) Installing py2-pip (18.1-r0)
Executing busybox-1.29.3-r10.trigger
1 error; 62 MiB in 25 packages


Seems like it's trying to get to a web resource that returns 403:



sendto(7, "GET /alpine/v3.9/main/x86_64/py-"..., 67, MSG_NOSIGNAL, NULL, 0) = 67
sendto(7, "Host: dl-cdn.alpinelinux.orgrn", 30, MSG_NOSIGNAL, NULL, 0) = 30
sendto(7, "User-Agent: libfetch/2.0rn", 26, MSG_NOSIGNAL, NULL, 0) = 26
sendto(7, "rn", 2, MSG_NOSIGNAL, NULL, 0) = 2
setsockopt(7, SOL_TCP, TCP_NODELAY, [1], 4) = 0
read(7, "HTTP/1.1 403 ForbiddenrnDate: Th"..., 1024) = 1024
close(7) = 0
wr) = 6
writev(2, [iov_base="", iov_len=0, iov_base="ERROR: ", iov_len=7], 2ERROR: ) = 7
writev(2, [iov_base="py-setuptools-40.6.3-r0: Permiss"..., iov_len=42, iov_base=NULL, iov_len=0], 2py
-setuptools-40.6.3-r0: Permission denied) = 42






python docker pip alpine






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 21:48







Ryan Fisher

















asked Mar 28 at 20:42









Ryan FisherRyan Fisher

5526 silver badges19 bronze badges




5526 silver badges19 bronze badges















  • would you like to share your dockerfile with us?

    – Efrat Levitan
    Mar 28 at 20:47











  • @Efrat Sure, but it doesn't matter. I can reproduce this directly: docker run -ti alpine sh -c 'apk update && apk add py2-pip' causes the same error, it fails when trying to install py-setuptools.

    – Ryan Fisher
    Mar 28 at 21:03






  • 1





    Ah, well actually no, I can't either: docker run -ti --user=root jenkins/jenkins:2.169-alpine sh -c 'apk update && apk add -v py2-pip' works like a charm

    – β.εηοιτ.βε
    Mar 28 at 21:32






  • 2





    docker run -ti alpine sh -c 'apk update && apk add py2-pip' went very well for me. what am i missing?

    – Efrat Levitan
    Mar 28 at 21:34






  • 1





    @RyanFisher then yes. You, Efrat and me testing it and getting it working is definitly pointing at something in your corporate network causing that.

    – β.εηοιτ.βε
    Mar 28 at 21:37


















  • would you like to share your dockerfile with us?

    – Efrat Levitan
    Mar 28 at 20:47











  • @Efrat Sure, but it doesn't matter. I can reproduce this directly: docker run -ti alpine sh -c 'apk update && apk add py2-pip' causes the same error, it fails when trying to install py-setuptools.

    – Ryan Fisher
    Mar 28 at 21:03






  • 1





    Ah, well actually no, I can't either: docker run -ti --user=root jenkins/jenkins:2.169-alpine sh -c 'apk update && apk add -v py2-pip' works like a charm

    – β.εηοιτ.βε
    Mar 28 at 21:32






  • 2





    docker run -ti alpine sh -c 'apk update && apk add py2-pip' went very well for me. what am i missing?

    – Efrat Levitan
    Mar 28 at 21:34






  • 1





    @RyanFisher then yes. You, Efrat and me testing it and getting it working is definitly pointing at something in your corporate network causing that.

    – β.εηοιτ.βε
    Mar 28 at 21:37

















would you like to share your dockerfile with us?

– Efrat Levitan
Mar 28 at 20:47





would you like to share your dockerfile with us?

– Efrat Levitan
Mar 28 at 20:47













@Efrat Sure, but it doesn't matter. I can reproduce this directly: docker run -ti alpine sh -c 'apk update && apk add py2-pip' causes the same error, it fails when trying to install py-setuptools.

– Ryan Fisher
Mar 28 at 21:03





@Efrat Sure, but it doesn't matter. I can reproduce this directly: docker run -ti alpine sh -c 'apk update && apk add py2-pip' causes the same error, it fails when trying to install py-setuptools.

– Ryan Fisher
Mar 28 at 21:03




1




1





Ah, well actually no, I can't either: docker run -ti --user=root jenkins/jenkins:2.169-alpine sh -c 'apk update && apk add -v py2-pip' works like a charm

– β.εηοιτ.βε
Mar 28 at 21:32





Ah, well actually no, I can't either: docker run -ti --user=root jenkins/jenkins:2.169-alpine sh -c 'apk update && apk add -v py2-pip' works like a charm

– β.εηοιτ.βε
Mar 28 at 21:32




2




2





docker run -ti alpine sh -c 'apk update && apk add py2-pip' went very well for me. what am i missing?

– Efrat Levitan
Mar 28 at 21:34





docker run -ti alpine sh -c 'apk update && apk add py2-pip' went very well for me. what am i missing?

– Efrat Levitan
Mar 28 at 21:34




1




1





@RyanFisher then yes. You, Efrat and me testing it and getting it working is definitly pointing at something in your corporate network causing that.

– β.εηοιτ.βε
Mar 28 at 21:37






@RyanFisher then yes. You, Efrat and me testing it and getting it working is definitly pointing at something in your corporate network causing that.

– β.εηοιτ.βε
Mar 28 at 21:37













0






active

oldest

votes













Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406539%2fwhy-cant-i-install-py-setuptools-as-root-in-an-alpine-3-9-docker-container%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406539%2fwhy-cant-i-install-py-setuptools-as-root-in-an-alpine-3-9-docker-container%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해