don't update the latest tag anymore

This commit is contained in:
David Ashpole 2020-03-02 09:55:14 -08:00
parent 4fe450a239
commit fd0e4a160b
3 changed files with 6 additions and 11 deletions

View File

@ -11,6 +11,7 @@ cAdvisor has native support for [Docker](https://github.com/docker/docker) conta
To quickly tryout cAdvisor on your machine with Docker, we have a Docker image that includes everything you need to get started. You can run a single cAdvisor to monitor the whole machine. Simply run:
```
VERSION=v0.35.0 # use the latest release version from https://github.com/google/cadvisor/releases
sudo docker run \
--volume=/:/rootfs:ro \
--volume=/var/run:/var/run:ro \
@ -20,7 +21,7 @@ sudo docker run \
--publish=8080:8080 \
--detach=true \
--name=cadvisor \
gcr.io/google-containers/cadvisor:latest
gcr.io/google-containers/cadvisor:$VERSION
```
cAdvisor is now running (in the background) on `http://localhost:8080`. The setup includes directories with Docker state cAdvisor needs to observe.

View File

@ -89,13 +89,6 @@ Go to https://github.com/google/cadvisor/releases and click "Draft a new release
## 6. Finalize the release
Once you are satisfied with the release quality (consider waiting a week for bug reports to come in), it is time to promote the release to *latest*
~~Once you are satisfied with the release quality (consider waiting a week for bug reports to come in), it is time to promote the release to *latest*~~
1. Edit the github release a final time, and uncheck the "Pre-release" checkbox
2. Tag the docker & gcr.io releases with the latest version
```
$ docker pull google/cadvisor:$VERSION
$ docker tag -f google/cadvisor:$VERSION google/cadvisor:latest
$ docker tag -f google/cadvisor:$VERSION gcr.io/google_containers/cadvisor:latest
```
3. Repeat steps 4.a and 4.b to push the image tagged with latest
cAdvisor is no longer pushed with the :latest tag. This is to ensure tagged images are immutable.

View File

@ -5,6 +5,7 @@
We have a Docker image that includes everything you need to get started. Simply run:
```
VERSION=v0.35.0 # use the latest release version from https://github.com/google/cadvisor/releases
sudo docker run \
--volume=/:/rootfs:ro \
--volume=/var/run:/var/run:rw \
@ -13,7 +14,7 @@ sudo docker run \
--publish=8080:8080 \
--detach=true \
--name=cadvisor \
google/cadvisor:latest
google/cadvisor:$VERSION
```
cAdvisor is now running (in the background) on `http://localhost:8080/`. The setup includes directories with Docker state cAdvisor needs to observe.