➜ docker_bigdata l
total 72M
drwxrwxr-x 4 dev dev 4.0K May 18 15:33 __MACOSX
-rw-rw-r-- 1 dev dev 72M May 18 15:14 d.zip
drwxr-xr-x 7 dev dev 4.0K May 18 14:57 base
drwxr-xr-x 4 dev dev 4.0K May 18 14:57 hadoop162
-rwxr-xr-x 1 dev dev 3.2K Apr 28 20:25 build_all.sh
-rwxr-xr-x 1 dev dev 2.1K Apr 28 20:25 contains.sh
drwxr-xr-x 2 dev dev 4.0K Apr 28 20:25 hadoop163
drwxr-xr-x 2 dev dev 4.0K Apr 28 20:25 hadoop164
drwxr-xr-x 2 dev dev 4.0K Apr 28 20:25 java8
drwxr-xr-x 2 dev dev 4.0K Apr 28 20:25 ssh
-rw-r--r-- 1 dev dev 1.3K Apr 28 20:25 Readme.md
➜ docker_bigdata ./build_all.sh
是否删除旧的所有容器y/n: y
开始删除所有容器....
cb74f545822e
是否构建 java8y/n: y
开始构建镜像: java8
Sending build context to Docker daemon 3.584kB
Step 1/8 : FROM centos:7.5.1804
---> cf49811e3cdb
Step 2/8 : MAINTAINER atguigu_lzc ([email protected])
---> Running in 28941fbabc5f
Removing intermediate container 28941fbabc5f
---> 151a090c1faf
Step 3/8 : RUN useradd atguigu && echo 'atguigu:aaaaaa' | chpasswd && mkdir -p /opt/software && mkdir -p /opt/module && chmod 777 /opt && chmod 777 /opt/module && chmod 777 /opt/software && echo 'root:aaaaaa' | chpasswd # 更改 root 用户登录密码为
---> Running in d189d1128559
Removing intermediate container d189d1128559
---> 70c077224563
Step 4/8 : USER atguigu
---> Running in b46634640154
Removing intermediate container b46634640154
---> 0061a255f7b7
Step 5/8 : COPY --chown=atguigu:atguigu jdk-8u212-linux-x64.tar.gz /opt/software/
---> ac0f38cfb93b
Step 6/8 : RUN tar -zxvf /opt/software/jdk-8u212-linux-x64.tar.gz -C /opt/module && rm -rf /opt/software/jdk-8u212-linux-x64.tar.gz && JAVA_HOME=/opt/module/jdk1.8.0_212
---> Running in d6a40cce98e8
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
The command '/bin/sh -c tar -zxvf /opt/software/jdk-8u212-linux-x64.tar.gz -C /opt/module && rm -rf /opt/software/jdk-8u212-linux-x64.tar.gz && JAVA_HOME=/opt/module/jdk1.8.0_212' returned a non-zero code: 2
是否构建 sshy/n: y
开始构建镜像: ssh
Sending build context to Docker daemon 5.12kB
Step 1/14 : FROM atguigu_bigdata_java8:0.0.1
pull access denied for atguigu_bigdata_java8, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
是否构建 basey/n: y
开始构建镜像: base
Sending build context to Docker daemon 70.46MB
Step 1/46 : FROM atguigu_bigdata_ssh:0.0.1
pull access denied for atguigu_bigdata_ssh, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
是否构建 162 163 164y/n: y
开始构建镜像 atguigu_bigdata_162
Sending build context to Docker daemon 4.622MB
Step 1/8 : FROM atguigu_bigdata_base:0.0.1
pull access denied for atguigu_bigdata_base, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
开始构建镜像 atguigu_bigdata_163
Sending build context to Docker daemon 2.56kB
Step 1/5 : FROM atguigu_bigdata_base:0.0.1
pull access denied for atguigu_bigdata_base, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
开始构建镜像 atguigu_bigdata_164
Sending build context to Docker daemon 2.56kB
Step 1/5 : FROM atguigu_bigdata_base:0.0.1
pull access denied for atguigu_bigdata_base, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Deleted: sha256:ac0f38cfb93b8c504bbb01395de4141340e69d0fb971a1411c648c2bb9f77065
Deleted: sha256:0061a255f7b7af5e4b92ea5422bd6141cc579d8a88ad2a0423c6591b13f2076b
Deleted: sha256:70c077224563c9a5acb652d4d4105cd51e81870e3ec451214eeb7910462cfb83
Deleted: sha256:151a090c1faf080ca1e4aa1738cc8ef670a92b2cea30f483117eb3eb98cd9862
创建集群容器: hadoop162
Unable to find image 'atguigu_bigdata_162:0.0.1' locally
Error response from daemon: pull access denied for atguigu_bigdata_162, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
创建集群容器: hadoop163
Unable to find image 'atguigu_bigdata_163:0.0.1' locally
Error response from daemon: pull access denied for atguigu_bigdata_163, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
创建集群容器: hadoop164
Unable to find image 'atguigu_bigdata_164:0.0.1' locally
Error response from daemon: pull access denied for atguigu_bigdata_164, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
➜ docker_bigdata
(还把我docker的镜像给删了。我以为只删除咱们这个项目创建的容器呢。。)
上面是全过程的log,咱们这个是什么问题呢?