mmm apk , , Alpine:).
I recommend that you enter the container with
$ docker exec -it CONTAINER_ID_OR_NAME /bin/sh
and then
# which apk
to find out if apk is present if the container is not running, you can do:
$ docker run --rm -it IMAGE_NAME /bin/sh
Here is an example of one of my Dockerfile
FROM alpine:edge
RUN apk add
RUN pip3 install
RUN pip3 install
CMD "/bin/sh"
I also went into one of my containers, and I ran your command:
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
Upgrading critical system libraries and apk-tools:
(1/3) Upgrading apk-tools (2.6.7-r0 -> 2.6.8-r1)
source
share