Giter VIP home page Giter VIP logo

docker-melt's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

docker-melt's Issues

xattrs are not preserved in final image

This is a bit hard to show given #1, but if it did work, you'll end up with the following:

% docker run -it tumbleweed:squashed sh
sh-4.3# useradd user
sh-4.3# su user
bash-4.3$ ping -c1 127.0.0.1
ping: icmp open socket: Operation not permitted

If you check the ping binary with getcap you find that it doesn't have any extended attributes (which it should on an opensuse image).

output image doesn't allow me to `su` to a new user

If I generate a new image using melt:

% docker save opensuse/amd64:tumbleweed > tumbleweed.tar
% ./melt -i tumbleweed.tar -o tumbleweed-squashed.tar -t tmp
% docker import tumbleweed-squashed.tar tumbleweed:squashed
% docker run -it tumbleweed:squashed sh
sh-4.3# useradd user
sh-4.3# su user
su: failed to execute /bin/bash: Permission denied

Which doesn't look right.

output image doesn't reduce file size with redundant layers

If I have a Dockerfile like this:

FROM opensuse/amd64:tumbleweed

RUN truncate --size 200M /somefile
RUN unlink /somefile

The resultant image is 200M larger than is necessary. When using melt the resultant rootfs doesn't appear to realise that the file can be removed. Docker does appear to prioritise removal of files over their creation, which means that this doesn't cause effects like files sticking around even though they were removed.

You might want to look at how "whiteout" files are implemented.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.