AnswerBun.com

Can I run docker system prune -a without downtime

I want to execute docker system prune -a to clean up space. Could someone please tell me if I can execute this command without docker-compose down (without removing the containers and downtime)

Stack Overflow Asked by Aswin George on January 27, 2021

1 Answers

One Answer

Docker documentation https://docs.docker.com/engine/reference/commandline/system_prune/ says:

Remove all unused containers, networks, images (both dangling and unreferenced), and optionally, volumes.

About -a option it says:

Remove all unused images not just dangling ones

So for sure this command does not produce a downtime. You can execute it without "docker-compose down".

Correct answer by Elmar Brauch on January 27, 2021

Add your own answers!

Related Questions

How to write a range syntax in Peg JS

2  Asked on March 3, 2021 by hemraj-rijal

     

How to randomize two characters in multiple Lines?

4  Asked on March 3, 2021 by malgosh

 

How can I connect to a VPN in docker not using VPN images?

2  Asked on March 2, 2021 by tiago-machado

     

Prevent infinite recursion in c++

4  Asked on March 2, 2021 by joo-menicucci

 

Convert data.frame to time series

1  Asked on March 2, 2021 by davide

       

Border behind grid line

2  Asked on March 1, 2021 by ronara

     

React redux prop object property undefined

1  Asked on March 1, 2021 by bbarriatos

         

.gitignore doesn’t work in windows terminal

2  Asked on February 28, 2021 by a100d

 

Get specific values

1  Asked on February 28, 2021

 

Copy locust file into volume via YML in kubernetes

1  Asked on February 28, 2021 by moses-liao-gz

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.