Skip to content

[BUG] Over 1.4 gigabytes of extra storage used for docker image #122

@toddke

Description

@toddke

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

There is over 1.4 gigabytes in the writable layer of the home assistant docker image. This also means the total image size is over 1.4 gigabytes larger than it should be.

Either this change, aptly named "hail mary", or the original change, "chown system python packages" are the likely culprits.

Ideally, the python installation would not be modified at runtime. But, if there's no way around changing permissions at runtime, the docker image should not include python at all. Instead, install python during the first launch of the container. This would at least shrink the container by 1.4G and not cause /usr/local/lib/python to impact container size by double.

Expected Behavior

The image should not create a 1.5G writable layer.

Steps To Reproduce

  1. Run the docker image
  2. Look at the disk usage
    # docker ps -s --format 'table {{.Names}}\t{{.Image}}\t{{.Size}}' | grep homeassistant
    homeassistant          ghcr.io/linuxserver/homeassistant               1.48GB (virtual 3.17GB)
    

Environment

- OS: unRAID v6.12.14
- How docker service was installed: Community Applications plugin

CPU architecture

x86-64

Docker creation

Community Applications unRAID plugin

Container logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions