Skip to content

Add astro dev clean to clean up Docker artifacts #1994

@bounlu

Description

@bounlu

Running astro dev restart leaves behind dangling Docker images i.e. <none> and a growing Docker build history. It is desirable to clean up them from time to time within astro cli. Particularly the below two commands will be useful for clean up:

docker image prune --force
docker buildx history rm --all

I suggest to add a handy function to astro as below to achieve this:

astro dev clean

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions