# Docker update image

**URL:** <https://speciforum.org/t/docker-update-image/1788>\
**Category:** Get Help\
**Created:** [June 5, 2024, 1:12pm UTC](https://speciforum.org/t/docker-update-image/1788 "2024-06-05T13:12:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedoras](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/fedoras/32/455_2.png) [@fedoras](https://speciforum.org/u/fedoras)\
**Post date:** [June 5, 2024, 1:12pm UTC](https://speciforum.org/t/docker-update-image/1788/1 "2024-06-05T13:12:22Z")

</div>

I am little confused how to update my specify7 docker images to the latest version. I have two test servers running: test1 and test2. The test2 was created at a later date and has the latest version of specify7 running, namely 7.9.5:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/9/921e66f5e796e291be7725813407566203ec2754.png)

Interestingly, the test1 server, that was created at a much earlier stage, is stuck at 7.9.3:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/e/e886625924f1c856c566ceac968325455b38a497.png)

On the server I have attempted to update the container images by running the following commands:

```auto
[root@testifyweb01fl specify] docker compose pull
[+] Pulling 33/33
 ✔ specify7-worker Skipped - Image is already being pulled by specify7 0.0s
 ✔ redis Pulled 9.6s
   ✔ e351272bb751 Pull complete 5.3s
   ✔ d2acfa1fd76e Pull complete 5.3s
   ✔ d4d7970efdb4 Pull complete 5.5s
   ✔ 8d5a9db41753 Pull complete 5.8s
   ✔ 18c00d30c02d Pull complete 5.9s
   ✔ a44e354087d8 Pull complete 6.2s
 ✔ specify7 Pulled 15.0s
   ✔ 7c457f213c76 Already exists 0.0s
   ✔ 93bfce96d259 Pull complete 3.1s
   ✔ acb99facf05e Pull complete 2.1s
   ✔ ec36dffa4992 Pull complete 2.2s
   ✔ aa4f4c9f4364 Pull complete 2.7s
   ✔ c632f686346b Pull complete 3.0s
   ✔ 1ade255d2d1c Pull complete 3.5s
   ✔ 1830b8deadf3 Pull complete 4.5s
   ✔ 4f4fb700ef54 Pull complete 3.7s
   ✔ 6029ab94a0f5 Pull complete 4.3s
   ✔ cd4181e7a4b8 Pull complete 4.3s
   ✔ 15f92edc130b Pull complete 4.8s
   ✔ b074f168369d Pull complete 4.9s
   ✔ f85f6cd08cae Pull complete 5.1s
 ✔ specify6 Pulled 1.2s
 ✔ nginx Pulled 11.0s
   ✔ 09f376ebb190 Pull complete 1.1s
   ✔ 5529e0792248 Pull complete 1.2s
   ✔ 9b3addd3eb3d Pull complete 0.4s
   ✔ 57910a8c4316 Pull complete 0.9s
   ✔ 7b5f78f21449 Pull complete 1.3s
   ✔ b7923aa4e8a6 Pull complete 1.5s
   ✔ 785625911f12 Pull complete 1.7s
 ✔ report-runner Pulled

[root@testifyweb01fl specify] docker compose up -d --remove-orphans
[+] Running 7/7
 ✔ Network specify_default Created 0.4s
 ✔ Container specify-specify7-worker-1 Started 0.2s
 ✔ Container specify-specify6-1 Started 0.2s
 ✔ Container specify-nginx-1 Started 0.2s
 ✔ Container specify-report-runner-1 Started 0.2s
 ✔ Container specify-redis-1 Started 0.2s
 ✔ Container specify-specify7-1 Started 0.2s
[root@testifyweb01fl specify] docker image prune
WARNING! This will remove all dangling images.
Are you sure you want to continue? [y/N] y
Deleted Images:
untagged: specifyconsortium/specify7-service@sha256:e0751119d67fe96c3748c4c693d159d50f8766752bb59a1d2a211a78aefa202c
deleted: sha256:abe43d0ee72c934a873b122939e14db871eca5d39eae2b13bb6cffecd951d3a6
deleted: sha256:6f7d71bbb105a3adc146ce71f9f44a3025f92a487b2c95660257f699663996a5
deleted: sha256:572d71ed65d011ef1037633dac4f0c97491648cdeb2d63024b0bdc6338a7dccd
deleted: sha256:bfc5fc60982cdaf258f32ea3e29a05e20f78a8b640dbe38825b08511e8cd4f76
deleted: sha256:484d75cb10a8a546049da4d8abae2833a71ff228590b560980b893929775459f
deleted: sha256:0a8e4fe105d9274bfbab37cd79fe97a26315bce1646ccb419879b2d31bf84b01
deleted: sha256:5825ac516c0e4b5e4fb1d06af0a470536244c102a270f66296cee335583e97bc
deleted: sha256:856819355d0a99fdc73c2ec1c836067ddc179415b162c867c75a2d0eaa2ff467
deleted: sha256:cfd6fdaea7a8eb38506a54286c2e11975f852180ca91da1af1017b332220a321
deleted: sha256:6d5701c3fc5d97ca61c898216f0bee5fa2cfa76accfb8c63df82946c62458719
deleted: sha256:37c0661db00904480c525d37b3fbbc44d90d49af5f588cb83e3609ea3a55da51
deleted: sha256:4ff39d00f34c5c3510d99561b4a01508f3dd7161e4f9a61d0467daf2d0102646
deleted: sha256:d46ffdc6a9a4cbbfb7f258c47fdce3ea3b0038b6a46aabfb8a98a919c143442f
deleted: sha256:db6e5b3ed01759f9e40e42365630b97f23939397f6933b9393df5c41e1adde73
untagged: redis@sha256:a77547891b95f17805ee946bed4833017a3f7ed5532ccc5f517bc48947064724
deleted: sha256:01d2d30530455dc5ddd9cc04c4f1ca4fcba3fdceeaa32c45510aa66312699161
deleted: sha256:0e94f8281de555098ba760d9278491f32f9302f14681764936ae258b87f6809e
deleted: sha256:8c8f9a03563e6466402ead330febcc6f9aa672a5a98b6e621cd76211d7fb2f43
deleted: sha256:c8a3bff9d6f8b69b303fd6b72e808d0ce61999969194039d49f7946da09e153b
deleted: sha256:f920b730cf1c2b856953537eec3d6e5767acc10c2120d1b3e5971857606db93f
deleted: sha256:4e58c48d4a704c627a69d6f8978976012a6d1a72d407b35f93d59428f957ae97
deleted: sha256:fe6a90fca87e205aef867b9b0198f6af9d3a1d502bbc82a0cc37e97922ae33ed
deleted: sha256:8c2939028cb50519530879c6dbc4099538a53a68a99b5f356b6bc1be86781428
untagged: nginx@sha256:0463a96ac74b84a8a1b27f3d1f4ae5d1a70ea823219394e131f5bf3536674419
deleted: sha256:2ac752d7aeb1d9281f708e7c51501c41baf90de15ffc9bca7c5d38b8da41b580
deleted: sha256:6f48b48669b4a97eeac346e72e869c1e4c680268cca70fcdec25da738c5a7548
deleted: sha256:64a386b3811048d74a7db8d1de097982cbef2ebbeec1dac1595bdbdf7d316328
deleted: sha256:52a454c478bf4ba5e25a792469347a0796b520496647eca6f17dd385adbf2113
deleted: sha256:fd16bb266cbd82f06608dfde01edef9d07b42ed0f4abbbd91c343c7764847961
deleted: sha256:f8393e895cb6daa91475b380620c3531f4b6a1916f6c4d78f32b278d60d86d57
deleted: sha256:6948ce15ba3e073bca22093105d3b19795b765bf4d51fbadbaff13fad0c523d7
deleted: sha256:1f00ff20147800878a4ebc9c283f79149a1dde5cc11d659c69d3a9c0bfeb7d4f

Total reclaimed space: 412.1MB
[root@testifyweb01fl specify] docker compose down && docker compose up -d
[+] Running 7/7
 ✔ Container specify-redis-1 Removed 0.5s
 ✔ Container specify-specify7-1 Removed 3.6s
 ✔ Container specify-specify7-worker-1 Removed 3.5s
 ✔ Container specify-specify6-1 Removed 0.0s
 ✔ Container specify-nginx-1 Removed 1.0s
 ✔ Container specify-report-runner-1 Removed 0.9s
 ✔ Network specify_default Removed 0.3s
[+] Running 7/7
 ✔ Network specify_default Created 0.4s
 ✔ Container specify-specify7-worker-1 Started 0.1s
 ✔ Container specify-specify6-1 Started 0.1s
 ✔ Container specify-nginx-1 Started 0.1s
 ✔ Container specify-report-runner-1 Started 0.1s
 ✔ Container specify-redis-1 Started 0.2s
 ✔ Container specify-specify7-1 Started 0.1s
[root@testifyweb01fl specify] docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5f1fa508d143 redis:6.0 "docker-entrypoint.s…" 28 seconds ago Up 26 seconds 6379/tcp specify-redis-1
6aefa75ef228 specifyconsortium/report-runner "/docker-entrypoint.…" 28 seconds ago Up 25 seconds 8080/tcp specify-report-runner-1
2f8e19610a14 nginx "/docker-entrypoint.…" 28 seconds ago Up 25 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp specify-nginx-1
7b2898818f80 specifyconsortium/specify7-service:v7 "/opt/specify7/docke…" 28 seconds ago Up 25 seconds 8000/tcp specify-specify7-worker-1
fad6a866d283 specifyconsortium/specify7-service:v7 "/opt/specify7/docke…" 28 seconds ago Up 27 seconds 8000/tcp specify-specify7-1

```

Yet test1 stays stuck on version 7.9.3. What else could I do?

---

<div class="post-metadata">

**Author:** ![markp](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/markp/32/1184_2.png) [@markp](https://speciforum.org/u/markp)\
**Post date:** [June 5, 2024, 5:17pm UTC](https://speciforum.org/t/docker-update-image/1788/2 "2024-06-05T17:17:28Z")

</div>

Hi Fedoras,

I believe that `docker image prune` may not have deleted the image because it is associated with a container.

If you run `docker images` this should show you the locally present images along with their repository and tag.

---

<div class="post-metadata">

**Author:** ![kitchenprinzessin](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kitchenprinzessin](https://speciforum.org/u/kitchenprinzessin)\
**Post date:** [November 13, 2024, 8:48am UTC](https://speciforum.org/t/docker-update-image/1788/3 "2024-11-13T08:48:55Z")

</div>

Hi  
How can I update the image so that it pulls the latest version when build the containers?  
I included ‘production’, but when i click About Specify 7 to view the system info, it shows “Specify 7 Version: delete-wbview.js”

```auto
svc-specify7-..:
    container_name: ctr-specify7-....
    hostname: specify7
    domainname: local.domain
    restart: unless-stopped
    image: specifyconsortium/specify7-service:production
    init: true

```

 ![Screenshot 2024-11-13 at 4.48.42 pm](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/a/a768ee9aea1719db56b55e3d8c9315ff4b36a3ab.png)

---

<div class="post-metadata">

**Author:** ![Grant](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/grant/32/4255_2.png) [@Grant](https://speciforum.org/u/Grant)\
**Post date:** [November 13, 2024, 5:01pm UTC](https://speciforum.org/t/docker-update-image/1788/4 "2024-11-13T17:01:35Z")

</div>

Hi @kitchenprinzessin,

At this time, we do not recommend that any users outside our team use the `production` branch, as it is not stable. We suggest that everyone pull the `v7` tag to receive the latest tagged release of Specify 7.

This is a known issue in the `production` version of Specify 7 related to version information, which has not yet been resolved. You can verify that you are on the latest version of `production` by checking the Git SHA link (see that it is the same commit as the last to the [`production` branch](https://github.com/specify/specify7/commits/production)) and build date instead of the version name.
