Docker Community Forums

Share and learn in the Docker community.

Docker push fails Unexpected EOF


(Sam) #1

I need to push my image to a repo so that I can get to it from AWS. this is my first push experience…

a downloaded image (httpd for instance) I can push successfully to my own private repo,
but my custom image I cannot

my Dockerfile , pretty simple

from ubuntu:latest

Install apache, PHP, and supplimentary programs.

run apt-get -y upgrade

RUN apt-get -y install
apache2 php5 php5-mysql libapache2-mod-php5 curl lynx-cur mysql-client telnet php5-gd

Enable apache mods.

RUN a2enmod php5
RUN a2enmod rewrite

Manually set up the apache environment variables

ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ENV WEBROOT_PATH /avcode
volume $WEBROOT_PATH

Expose apache.

EXPOSE 80

Update the default apache site with the config we created.

ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf
ADD apache.conf /etc/apache2/apache2.conf

By default start up apache in the foreground, override with /bin/bash for interative.

CMD /usr/sbin/apache2ctl -D FOREGROUND

docker version info
------------------------ (on ubuntu 14.04)
Docker version 17.09.0-ce, build afdb6d4

setup
docker build -t cart .
docker tag cart userid/reponame:tagname

docker push userid/reponame:tagname

docker push debug log

time=“2017-10-14T09:07:36.417088969-05:00” level=debug msg="Calling GET /_ping"
time=“2017-10-14T09:07:36.417814986-05:00” level=debug msg="Calling GET /v1.32/info"
time=“2017-10-14T09:07:36.570343848-05:00” level=debug msg="Calling POST /v1.32/images/username/webserver/push?tag=webserver"
time=“2017-10-14T09:07:36.570973786-05:00” level=debug msg="Trying to push ===docker.io_username/webserver to https//registry-1.docker.io v2"
time=“2017-10-14T09:07:41.815104914-05:00” level=debug msg="Pushing repository: username/webserver:webserver"
time=“2017-10-14T09:07:41.818546287-05:00” level=debug msg="Checking for presence of layer sha256:0caca9d33b4e7539b134703e46981228901c3f58288e713ef88cb995db3f1549 (sha256:c5fd4dc891960bce75f3574768db5eb3f8e699a109b56161767cb71808dddaeb) in —=docker.io_username/webserver"
time=“2017-10-14T09:07:41.818600667-05:00” level=debug msg="Checking for presence of layer sha256:8f85c814081ba0e6fe47a60396eca119f224471bd55235264cb5b89a85c3e5ed (sha256:1790f48b7b12428ba60b744bd05c32e0aa9b5dc6e01b185cfd968524d483e9c1) in docker.io_username/webserver"
time=“2017-10-14T09:07:41.818844401-05:00” level=debug msg="Checking for presence of layer sha256:f963fc645c64a2f8c31c9d7035794b426edfecc37666538155552e5ec919cfc8 (sha256:a2833cde2ad37590f5e2e9bde6d887be86d5a2db30a7da1c92a23daf50b3be05) in docker.io_username/webserver"
time=“2017-10-14T09:07:41.818870319-05:00” level=debug msg="Checking for presence of layer sha256:925058628ac884256b1cf9d361a8f2a176bc5f8f8ba40114f17d7b9dd2f4b0c8 (sha256:e9ce09527ed29d298d0c6537516262eeb9ed3cd9143a0ef20da2999bb2abd751) in docker.io_username/webserver"
time=“2017-10-14T09:07:41.819514495-05:00” level=debug msg="Checking for presence of layer sha256:16e587f6fbd2627cc0c8452bfb36ab2a79137b8433b24201a845c7e4347c03ec (sha256:56a6c82bbe25858c4b95be072a422bccef1ec915aff58f2993adae1e957b9f14) in docker.io_username/webserver"
time=“2017-10-14T09:07:42.583175469-05:00” level=debug msg="Pushing layer: sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
time=“2017-10-14T09:07:42.586213879-05:00” level=debug msg="Pushing layer: sha256:5a1d4a0cb2fefafa5ec1c8da0fe559818c6517be596d1262bf76219e1ff45e7e"
time=“2017-10-14T09:07:42.586853747-05:00” level=debug msg="Pushing layer: sha256:6a690a3463626df8c7d33913f6fbd0b475d13bc976847398dba3e4e43c3f5fd9"
time=“2017-10-14T09:07:42.591505824-05:00” level=debug msg="Pushing layer: sha256:54dd2634083d295b98c6845293a777528d9ee37bdc687b3163fedaf9f6edb272"
time=“2017-10-14T09:07:42.899026553-05:00” level=debug msg="Assembling tar data for 7e2c5c55ef2cd7675dcc9e9cc012dc2f759ceaf0f36c950b672af6df87af5070"
time=“2017-10-14T09:07:42.928673647-05:00” level=debug msg="Assembling tar data for e118faab2e16f9d858fcec0d86c9148e9b0fa021697239745f3253f367941dcc"
time=“2017-10-14T09:07:42.951746827-05:00” level=debug msg="Assembling tar data for fa81ed084842076d1b39b56d084d99ec0011cd4a5ade1056be359486a8b213e4"
time=“2017-10-14T09:07:42.980233483-05:00” level=debug msg="Assembling tar data for e04c66a223c45a6247237510c40117cef92acb0a4355f1ba90580ef6274b490d"
time=“2017-10-14T09:07:43.074763438-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:07:43.126250898-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:07:43.171631648-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:07:48.075014861-05:00” level=debug msg="Pushing layer: sha256:6a690a3463626df8c7d33913f6fbd0b475d13bc976847398dba3e4e43c3f5fd9"
time=“2017-10-14T09:07:48.126481270-05:00” level=debug msg="Pushing layer: sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
time=“2017-10-14T09:07:48.171910727-05:00” level=debug msg="Pushing layer: sha256:5a1d4a0cb2fefafa5ec1c8da0fe559818c6517be596d1262bf76219e1ff45e7e"
time=“2017-10-14T09:07:48.846457995-05:00” level=debug msg="Assembling tar data for fa81ed084842076d1b39b56d084d99ec0011cd4a5ade1056be359486a8b213e4"
time=“2017-10-14T09:07:48.869814249-05:00” level=debug msg="Assembling tar data for e04c66a223c45a6247237510c40117cef92acb0a4355f1ba90580ef6274b490d"
time=“2017-10-14T09:07:48.874426373-05:00” level=debug msg="Assembling tar data for 7e2c5c55ef2cd7675dcc9e9cc012dc2f759ceaf0f36c950b672af6df87af5070"
time=“2017-10-14T09:07:49.470454297-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:07:49.476759595-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:07:49.501438812-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:07:59.470725554-05:00” level=debug msg="Pushing layer: sha256:5a1d4a0cb2fefafa5ec1c8da0fe559818c6517be596d1262bf76219e1ff45e7e"
time=“2017-10-14T09:07:59.476994022-05:00” level=debug msg="Pushing layer: sha256:6a690a3463626df8c7d33913f6fbd0b475d13bc976847398dba3e4e43c3f5fd9"
time=“2017-10-14T09:07:59.501732878-05:00” level=debug msg="Pushing layer: sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
time=“2017-10-14T09:08:00.325702406-05:00” level=debug msg="Assembling tar data for e04c66a223c45a6247237510c40117cef92acb0a4355f1ba90580ef6274b490d"
time=“2017-10-14T09:08:00.330479896-05:00” level=debug msg="Assembling tar data for fa81ed084842076d1b39b56d084d99ec0011cd4a5ade1056be359486a8b213e4"
time=“2017-10-14T09:08:00.333558148-05:00” level=debug msg="Assembling tar data for 7e2c5c55ef2cd7675dcc9e9cc012dc2f759ceaf0f36c950b672af6df87af5070"
time=“2017-10-14T09:08:01.007560946-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:08:01.025209541-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:08:01.414515416-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:08:11.149481828-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:08:16.008331538-05:00” level=debug msg="Pushing layer: sha256:6a690a3463626df8c7d33913f6fbd0b475d13bc976847398dba3e4e43c3f5fd9"
time=“2017-10-14T09:08:16.025658791-05:00” level=debug msg="Pushing layer: sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
time=“2017-10-14T09:08:16.150116394-05:00” level=debug msg="Pushing layer: sha256:54dd2634083d295b98c6845293a777528d9ee37bdc687b3163fedaf9f6edb272"
time=“2017-10-14T09:08:16.415195363-05:00” level=debug msg="Pushing layer: sha256:5a1d4a0cb2fefafa5ec1c8da0fe559818c6517be596d1262bf76219e1ff45e7e"
time=“2017-10-14T09:08:21.281831177-05:00” level=debug msg="Assembling tar data for fa81ed084842076d1b39b56d084d99ec0011cd4a5ade1056be359486a8b213e4"
time=“2017-10-14T09:08:21.295325156-05:00” level=debug msg="Assembling tar data for 7e2c5c55ef2cd7675dcc9e9cc012dc2f759ceaf0f36c950b672af6df87af5070"
time=“2017-10-14T09:08:21.298092166-05:00” level=debug msg="Assembling tar data for e04c66a223c45a6247237510c40117cef92acb0a4355f1ba90580ef6274b490d"
time=“2017-10-14T09:08:21.301849511-05:00” level=debug msg="Assembling tar data for e118faab2e16f9d858fcec0d86c9148e9b0fa021697239745f3253f367941dcc"
time=“2017-10-14T09:08:21.471027416-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:08:21.476438198-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:08:21.478580071-05:00” level=error msg="Upload failed, retrying: unexpected EOF"
time=“2017-10-14T09:08:41.471290100-05:00” level=debug msg="Pushing layer: sha256:6a690a3463626df8c7d33913f6fbd0b475d13bc976847398dba3e4e43c3f5fd9"
time=“2017-10-14T09:08:41.476617331-05:00” level=debug msg="Pushing layer: sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
time=“2017-10-14T09:08:41.479267722-05:00” level=debug msg="Pushing layer: sha256:5a1d4a0cb2fefafa5ec1c8da0fe559818c6517be596d1262bf76219e1ff45e7e"
time=“2017-10-14T09:08:42.306501448-05:00” level=debug msg="Assembling tar data for e04c66a223c45a6247237510c40117cef92acb0a4355f1ba90580ef6274b490d"
time=“2017-10-14T09:08:42.326051839-05:00” level=debug msg="Assembling tar data for 7e2c5c55ef2cd7675dcc9e9cc012dc2f759ceaf0f36c950b672af6df87af5070"
time=“2017-10-14T09:08:42.364697588-05:00” level=debug msg="Assembling tar data for fa81ed084842076d1b39b56d084d99ec0011cd4a5ade1056be359486a8b213e4"
time=“2017-10-14T09:08:42.942299653-05:00” level=error msg="Upload failed: unexpected EOF"
time=“2017-10-14T09:08:42.942675560-05:00” level=info msg=“Attempting next endpoint for push after error: unexpected EOF” gedit dockerfile