535
536
Minor and major version tags update with each matching release. For example, if `v1.40.1` is published, the `v1.40` tag moves from `v1.40.0` to `v1.40.1`.
537
538
+## Update your Netdata Docker container
539
+
540
+Docker containers do not auto-update. To update, you pull a new image and recreate the container.
541
+
542
+:::important
543
+
544
+Persistent volumes (`netdataconfig`, `netdatalib`, `netdatacache`) preserve your configuration and metrics across container recreation. If you followed the recommended installation, these volumes are already set up.
545
+
546
+:::
547
+
548
+<Tabs>
549
+<TabItem value="docker_run" label="docker run">
550
+
551
+1. Pull the latest image:
552
+
553
+ ```bash
554
+ docker pull netdata/netdata:stable
555
+ ```
556
+
557
+2. Stop and remove the existing container:
558
+
559
+ ```bash
560
+ docker stop netdata && docker rm netdata
561
+ ```
562
+
563
+3. Recreate the container using the same `docker run` command you originally used (see [Create a new Netdata Agent container](#create-a-new-netdata-agent-container) above).
564
+
565
+</TabItem>
566
+<TabItem value="docker_compose" label="docker-compose">
567
+
568
+```bash
569
+docker-compose pull && docker-compose up -d
570
+```
571
+
572
+The `docker-compose.yml` file preserves all configuration options.
573
+
574
+</TabItem>
575
+</Tabs>
576
+
577
+Check the running Agent version:
578
+
579
+```bash
580
+docker exec netdata netdata -W buildinfo
581
+```
582
+
583
+:::tip
584
+
585
+Use the `stable` tag to pull only stable releases. The `latest` tag (the default) may include nightly builds. See [Docker tags](#docker-tags) for all available tags.
586
+
587
+:::
588
+
589
+:::note
590
+
591
+If Netdata Cloud shows a **Critical update** notification, your Agent version is below the minimum required version for optimal Cloud functionality. Nightly builds may trigger this notification even when up to date. Switching to the `stable` tag resolves this.
592
+
593
+:::
594
+
595
+:::note
596
+
597
+If you manage containers through a third-party platform (such as CasaOS, Portainer, or ZimaBoard), use that platform's update interface. The Netdata image must use our official image tags to receive updates.
598
+
599
+:::
600
+
601
## Configure Agent Containers
602
603
If you started an Agent container using one of the [recommended methods](#create-a-new-netdata-agent-container) and need to edit its configuration, first attach to the container with `docker exec`, replacing `netdata` with your container’s name.