Installing 'ps' command in redis-5.0.8 docker image

60 views
Skip to first unread message

Novel Kumar

unread,
Jun 17, 2021, 8:14:19 AM6/17/21
to Redis DB
I am trying to debug an issue in redis and my redis pods doesnt have 'ps' command. When i try to enable it in image through dockerfile, i am getting connectivity error.

This is what i did:

dockerfile:
FROM redis:5.0.8

ARG HTTP_PROXY
ARG HTTPS_PROXY
.............
..............
RUN apt-get update
RUN apt-get install bash sed procps -y

Build command:
sudo docker build -t redis:1.0 /home/test/ --build-arg TEST_USER_ID=2021 --build-arg TEST_GROUP_ID=2021 --build-arg HTTP_PROXY=<proxyserverurl> --build-arg HTTPS_PROXY=<proxyserverurl>

sed and bash packages are getting installed. Not procps.

Error:

W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Could not connect to deb.debian.org:80 (IP), connection timed out

Any help plz..!!

Reply all
Reply to author
Forward
0 new messages