slimtoolkit / slimtoolkit/slim

Cannot find APT

Open
#115 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
23.4k
Forks
840
PR merge metrics
No merged PRs in 30d

Description

Hello maybe i'am missing something buth after creating a .slim image all the things that should be present on it are not. For example there is not apt even is the build is base on debian no python found. Do not understand why everything that I have installed in my image disapear after being slimmed.

Here the command i am issuing to create the img.

docker-slim build  -include-path="/bin" --include-path="/sbin" --include-path="/lib" --http-probe=false --continue-after=3 XXX/debian-10-builder:test
docker run -it XXX/ansible.slim bash
bash-5.0# python
bash: python: command not found
bash-5.0# apt
bash: apt: command not found

Maybe i'am doing something wrong but cannot understand my mistake.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported docker-slim build command against the Debian image, then inspect the resulting .slim image to compare its contents with the source image. Determine whether the missing apt and python commands are expected from the stated include paths; done means the cause and required configuration are documented or the slimming behavior is corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
devops, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.