Update updating-our-containers.md

pull/1/head
Josh Stark 2019-02-06 19:08:34 +00:00 zatwierdzone przez GitHub
rodzic 6c0f36ccb2
commit 953eb4b1dc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 25 dodań i 0 usunięć

Wyświetl plik

@ -46,3 +46,28 @@ docker create \
linuxserver/<image_name>
```
## Docker Compose
It is also possible to update a single container using Docker Compose:
```bash
docker-compose pull linuxserver/<image_name>
docker-compose up -d <container_name>
```
Or, to update all containers at once:
```bash
docker-compose pull --parallel
docker-compose up -d
```
{% hint style="info" %} The `--parallel` flag will pull down all available images in multiple threads, rather than one at a time.{% endhint %}
## Removing old images
Whenever a Docker image is updated, a fresh version of that image gets downloaded and stored on your host machine. Doing this, however, does not remove the _old_ version of the image. Eventually you will end up with a lot of disk space used up by stale images. You can `prune` old images from your system, which will free up space:
```bash
docker image prune
```