代码改变世界

dockerhub

2022-04-25 08:38  qgbo  阅读(94)  评论(0编辑  收藏  举报

docker hub:

新建 DockerfileV2

FROM alpine:3.13

# This is the release of Consul to pull in.
ARG CONSUL_VERSION=1.11.5


# This is the location of the releases.
ENV HASHICORP_RELEASES=https://releases.hashicorp.com



# Set up certificates, base tools, and Consul.
# libc6-compat is needed to symlink the shared libraries for ARM builds
RUN set -eux && apk add --no-cache ca-certificates curl dumb-init gnupg libcap openssl su-exec iputils jq libc6-compat
    
CMD ["/bin/bash"]

 

docker build . -f Dockerfile_V2 -t qigbo/qgb_consul:V2

 

docker push qigbo/qgb_consul:V2

在这儿看到 镜像