“Docker build”的版本间的差异
跳到导航
跳到搜索
(→参考) |
|||
第3行: | 第3行: | ||
<pre> | <pre> | ||
+ | |||
+ | 先登录 | ||
+ | docker login | ||
+ | evan886 evan22 | ||
+ | |||
+ | |||
+ | |||
+ | cd /data/builddocker/mysql/5.7 | ||
+ | /data/builddocker/mysql/5.7# ls | ||
+ | docker-entrypoint.sh Dockerfile | ||
+ | |||
+ | docker build --tag evan886/mysql5.7:v1 -f Dockerfile . | ||
+ | |||
+ | docker push evan886/mysql5.7:v1 | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
docker push evan886/ubuntu14 | docker push evan886/ubuntu14 | ||
The push refers to repository [docker.io/evan886/ubuntu14] | The push refers to repository [docker.io/evan886/ubuntu14] |
2020年10月22日 (四) 05:49的版本
建议以 Alpine Linux 作为基础打包
先登录 docker login evan886 evan22 cd /data/builddocker/mysql/5.7 /data/builddocker/mysql/5.7# ls docker-entrypoint.sh Dockerfile docker build --tag evan886/mysql5.7:v1 -f Dockerfile . docker push evan886/mysql5.7:v1 docker push evan886/ubuntu14 The push refers to repository [docker.io/evan886/ubuntu14] Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 223.6.6.6:53: read udp 192.168.10.199:42959->223.6.6.6:53: i/o timeout 后来dns 改为8.8.8.8就好了呀
Docker系列之(三):Docker微容器Alpine Linux