# Ubuntu docker not updating automatically

**URL:** <https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420>\
**Category:** troubleshooting\
**Tags:** docker, watchtower\
**Created:** [January 26, 2021, 1:01am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420 "2021-01-26T01:01:33Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![linuxgeek](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/linuxgeek/32/1131_2.png) [@linuxgeek](https://forum.storj.io/u/linuxgeek)\
**Post date:** [January 26, 2021, 1:01am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/1 "2021-01-26T01:01:33Z")

</div>

Since I started running Ubuntu through docker it is not updating automatically. I tried following the instructions on “Software Updates, automatic update page”, but still it is not updating automatically. I have to do it manually. On that instruction it say that by running the command docker ps -a, it would show “storjlabs/watchtower:latest”, however mine only shows this “storjlabs/watchtower” there is no “:latest”. What am I missing? Please help. thank you.

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [January 26, 2021, 2:29am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/2 "2021-01-26T02:29:13Z")

</div>

Can you show the watchtower command and result of `docker ps -a` ?

---

<div class="post-metadata">

**Author:** ![linuxgeek](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/linuxgeek/32/1131_2.png) [@linuxgeek](https://forum.storj.io/u/linuxgeek)\
**Post date:** [January 26, 2021, 3:02am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/3 "2021-01-26T03:02:23Z")

</div>

![image](https://storj-s3.bcdn.literatehosting.net/original/2X/8/81a70dbd79d99a4472f79f6a09d4867484b9a12d.png)

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [January 26, 2021, 3:15am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/4 "2021-01-26T03:15:10Z")

</div>

Also show the watchtower command you are using

---

<div class="post-metadata">

**Author:** ![kevink](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kevink/32/6077_2.png) [@kevink](https://forum.storj.io/u/kevink)\
**Post date:** [January 26, 2021, 6:17am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/5 "2021-01-26T06:17:31Z")

</div>

> [@linuxgeek](#):
>
> “storjlabs/watchtower”

defaults to storjlabs/watchtower:latest

Ubuntu never just updates docker. Not sure why, haven’t researched but my guess it that it would disrupt operations too much if you’re not running a swarm. If my docker updates and restarts all containers, I have way too much IOwait, so it would be a problem. I need to update/restart my nodes one after the other (has finished the filewalker process after starting the node).

---

<div class="post-metadata">

**Author:** ![linuxgeek](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/linuxgeek/32/1131_2.png) [@linuxgeek](https://forum.storj.io/u/linuxgeek)\
**Post date:** [January 26, 2021, 7:07am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/6 "2021-01-26T07:07:53Z")

</div>

I followed whatever the instructions at this page: [https://documentation.storj.io/setup/cli/software-updates](https://documentation.storj.io/setup/cli/software-updates).

1. docker pull storjlabs/watchtower  
2 . docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode watchtower --stop-timeout 300s

---

<div class="post-metadata">

**Author:** ![linuxgeek](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/linuxgeek/32/1131_2.png) [@linuxgeek](https://forum.storj.io/u/linuxgeek)\
**Post date:** [January 26, 2021, 7:09am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/7 "2021-01-26T07:09:06Z")

</div>

I am currently running just one node on this hardware.

---

<div class="post-metadata">

**Author:** ![kevink](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kevink/32/6077_2.png) [@kevink](https://forum.storj.io/u/kevink)\
**Post date:** [January 26, 2021, 7:49am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/8 "2021-01-26T07:49:56Z")

</div>

ah so you are wondering about the node getting updated, not docker itself… ok. that’s something different, sorry.

---

<div class="post-metadata">

**Author:** ![andrew2.hart](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/andrew2.hart/32/6415_2.png) [@andrew2.hart](https://forum.storj.io/u/andrew2.hart)\
**Post date:** [January 26, 2021, 8:08am UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/9 "2021-01-26T08:08:34Z")

</div>

You called your SN storagenode1 so you need to stop and remove your watchtower (and you could remove your hello world crufts too) and run the watchtower with storagenode1 and watchtower as the params.  
Or you could post your watchtower start command so that I don’t have to guess.

---

<div class="post-metadata">

**Author:** ![deathlessdd](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/deathlessdd/32/6067_2.png) [@deathlessdd](https://forum.storj.io/u/deathlessdd)\
**Post date:** [January 26, 2021, 2:39pm UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/10 "2021-01-26T14:39:45Z")

</div>

> [@linuxgeek](#):
>
> docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode watchtower --stop-timeout 300s

You had the right idea but you didnt put the right container name for you watchtower it will never update.

> docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode1 watchtower --stop-timeout 300s

Theres how it should look.  
You should run

```
docker stop watchtower
docker rm watchtower

```

Then re run the command again.

---

<div class="post-metadata">

**Author:** ![linuxgeek](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/linuxgeek/32/1131_2.png) [@linuxgeek](https://forum.storj.io/u/linuxgeek)\
**Post date:** [January 26, 2021, 3:38pm UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/11 "2021-01-26T15:38:03Z")

</div>

Oh, I see, I think you are right, that’s what I missed. I will try to do that. Thanks.

---

<div class="post-metadata">

**Author:** ![linuxgeek](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/linuxgeek/32/1131_2.png) [@linuxgeek](https://forum.storj.io/u/linuxgeek)\
**Post date:** [January 26, 2021, 3:46pm UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/12 "2021-01-26T15:46:08Z")

</div>

I tried it, and this is what it is now when I run docker ps -a. It still not showing “storjlabs/watchtower:latest”

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/b/bc96006da9913f3516976b717eee2201a9253135.png)

---

<div class="post-metadata">

**Author:** ![fmoledina](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/fmoledina/32/6739_2.png) [@fmoledina](https://forum.storj.io/u/fmoledina)\
**Post date:** [January 26, 2021, 3:47pm UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/13 "2021-01-26T15:47:57Z")

</div>

> [@kevink](#):
>
> Ubuntu never just updates docker.

I suppose it depends on how it’s installed? With apt, whether I’m using `docker.io` or `docker-ce`, updates definitely come through with apt updates and I need to watch for new docker packages so I bring down all my docker-compose stacks manually prior to updating docker.

---

<div class="post-metadata">

**Author:** ![deathlessdd](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/deathlessdd/32/6067_2.png) [@deathlessdd](https://forum.storj.io/u/deathlessdd)\
**Post date:** [January 26, 2021, 3:50pm UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/14 "2021-01-26T15:50:12Z")

</div>

You will have to wait for watchtower to update it, its not instant update.

---

<div class="post-metadata">

**Author:** ![kevink](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kevink/32/6077_2.png) [@kevink](https://forum.storj.io/u/kevink)\
**Post date:** [January 26, 2021, 3:56pm UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/15 "2021-01-26T15:56:54Z")

</div>

yes with apt upgrade it installs for me too and I have to be careful when running that command but it doesnt update automatically with the automatic security updates in background (I guess unless there is a security relevant docker update? but never seen that…).

---

<div class="post-metadata">

**Author:** ![fmoledina](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/fmoledina/32/6739_2.png) [@fmoledina](https://forum.storj.io/u/fmoledina)\
**Post date:** [January 26, 2021, 4:31pm UTC](https://forum.storj.io/t/ubuntu-docker-not-updating-automatically/11420/16 "2021-01-26T16:31:09Z")

</div>

> [@kevink](#):
>
> doesnt update automatically with the automatic security updates in background

Right, I understand what you mean. That’s correct that docker doesn’t update automatically with unattended-upgrades. Aside: for a while I ran a local Landscape server that did auto apt updates across my servers and (at the time) LXC containers. Definitely had some surprise downtime every now and then with that approach, haha.
