Skip to content

Container base Image

Prayag edited this page May 9, 2023 · 6 revisions

If the repo fails try different repos, Example:

Error: creating build container: initializing source docker://quay.io/centos/centos:latest: pinging container registry quay.io: Get "https://quay.io/v2/": x509: certificate has expired or is not yet valid: current time 2023-01-21T06:45:51-08:00 is before 2023-01-26T00:00:00Z

podman pull docker.io/centos:latest
Trying to pull docker.io/library/centos:latest...
Getting image source signatures
Copying blob sha256:a1d0c75327776413fa0db9ed3adcdbadedc95a662eb1d360dad82bb913f8a1d1
Copying config sha256:5d0da3dc976460b72c77d94c8a1ad043720b0416bfc16c52c45d4847e53fadb6
Writing manifest to image destination
Storing signatures
5d0da3dc976460b72c77d94c8a1ad043720b0416bfc16c52c45d4847e53fadb6

run container on host network space: https://docs.docker.com/network/host/

docker run -it --network host retailstore-rest
RUN sed -i -e 's/https:/http:/' /etc/apk/repositories

Remove all containers

docker rmi $(docker images -a -q)

Prune dangling images

docker image prune

Clone this wiki locally