Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: recent pull keeps 'index.html' there #4

Closed
kryton opened this issue Jul 30, 2014 · 3 comments
Closed

Docker: recent pull keeps 'index.html' there #4

kryton opened this issue Jul 30, 2014 · 3 comments

Comments

@kryton
Copy link

kryton commented Jul 30, 2014

I don't know why this is happening, as on my dev box (ubuntu 14.04/docker1.1.2) it works as advertised.
but on my staging server (centos 6.5/docker 1.0.0) the file 'index.html' isn't removed

@yosifkit
Copy link
Member

Can you double check that they have the same image? What is the difference in a docker history --no-trunc for each of them?

@kryton
Copy link
Author

kryton commented Aug 1, 2014

$ docker run -e WORDPRESS_DB_PASSWORD=mypass -e WORDPRESS_DB_USER=admin -e WORDPRESS_DB_NAME=test --link mw_db:mysql -t -i wordpress bash
WordPress not found in /var/www/html - copying now...
Complete! WordPress has been successfully copied to /var/www/html
root@af3eadebe834:/var/www/html# ls
index.html license.txt wp-activate.php wp-blog-header.php wp-config-sample.php wp-content wp-includes wp-load.php wp-mail.php wp-signup.php xmlrpc.php
index.php readme.html wp-admin wp-comments-post.php wp-config.php wp-cron.php wp-links-opml.php wp-login.php wp-settings.php wp-trackback.php
root@af3eadebe834:/var/www/html#

$ diff wordpress.*
7c7

< e1da781fdc940173accf19ec65fad2a8937916dc86cb59a61bc505bd764fb390 8 weeks ago /bin/sh -c find "$APACHE_CONFDIR" -type f -exec sed -ri ' s!^(\s_CustomLog)\s+\S+!\1 /proc/self/fd/1!g; s!^(\s_ErrorLog)\s+\S+!\1 /proc/self/fd/2!g;' '{}' ';' 88.83 kB

e1da781fdc940173accf19ec65fad2a8937916dc86cb59a61bc505bd764fb390 8 weeks ago /bin/sh -c find "$APACHE_CONFDIR" -type f -exec sed -ri ' s!^(\s_CustomLog)\s+\S+!\1 /proc/self/fd/1!g; s!^(\s_ErrorLog)\s+\S+!\1 /proc/self/fd/2!g;' '{}' ';' 88.84 kB
12d11
< 98d143d5e3294a708b314cc7734983c0e7b64bc7fbc2735d3d025ac5146fbc97 8 weeks ago /bin/sh -c #(nop) ENV APACHE_RUN_DIR=/var/run/apache2 0 B
13a13
98d143d5e3294a708b314cc7734983c0e7b64bc7fbc2735d3d025ac5146fbc97 8 weeks ago /bin/sh -c #(nop) ENV APACHE_RUN_DIR=/var/run/apache2 0 B
22,23c22,23
< f106b5d7508a201e2501078bb96d877cf50cf0b799242bea90aba294fa9539ac 9 weeks ago /bin/sh -c #(nop) CMD [/bin/bash] 0 B

< 1e8abad02296ab9c600564b43d4f3e34855cfd40433f32e2ba90aaab37b07f7d 9 weeks ago /bin/sh -c #(nop) ADD file:bf31c4f934dcaac38efdd7b23a0f0231c414ed6bd103009a0f4b31c06154460d in / 121.8 MB

f106b5d7508a201e2501078bb96d877cf50cf0b799242bea90aba294fa9539ac 8 weeks ago /bin/sh -c #(nop) CMD [/bin/bash] 0 B
1e8abad02296ab9c600564b43d4f3e34855cfd40433f32e2ba90aaab37b07f7d 8 weeks ago /bin/sh -c #(nop) ADD file:bf31c4f934dcaac38efdd7b23a0f0231c414ed6bd103009a0f4b31c06154460d in / 121.8 MB

I have attached the files here:

<script src="https://gist.github.com/kryton/2db1bdb8aeb7d77384fc.js"></script>

https://gist.github.com/kryton/2db1bdb8aeb7d77384fc

@yosifkit
Copy link
Member

yosifkit commented Aug 1, 2014

Thanks, it looks like there was a bug in the build of this image. The RUN rm -rf /var/www/html && mkdir /var/www/html does not change the layer. I will get it rebuilt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants