Docker update image

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:

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

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

[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?

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.

3 Likes

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”

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

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) and build date instead of the version name.

1 Like