Hi,
I am trying to select the latest ubuntu image (e.g ubuntu-2204-jammy-v20240515) using gcloud command like below but output always gives the below 2 entries:
gcloud compute images list --project $project_id --filter="name~'^ubuntu-2204'" --quiet --format="c
sv[no-heading,separator=' '](name,family,creationTimestamp:sort=1)"
ubuntu-2204-jammy-arm64-v20240515 ubuntu-2204-lts-arm64 2024-05-14T20:14:04.187-07:00
ubuntu-2204-jammy-v20240515 ubuntu-2204-lts 2024-05-14T20:14:01.248-07:00
But I would like it to return:
ubuntu-2204-jammy-v20240515 ubuntu-2204-lts 2024-05-14T20:14:01.248-07:00
Also if there is new release of the above image after one month then when I run the command then it should reflect the latest one. I could not find
Is it possible? Please help.
Hello @PB78 ,Welcome on Google Cloud Community.
I've performed this command:
damian_sztankowski@cloudshell:~ (webaap-wordpress-load)$ gcloud compute images list --project $project_id --filter="name~'^ubuntu-2204*'" --quiet --format="csv[no-heading,separator=' '](name
,family,creationTimestamp:sort=1)"
ubuntu-2204-jammy-arm64-v20240519 ubuntu-2204-lts-arm64 2024-05-19T14:31:32.129-07:00
ubuntu-2204-jammy-v20240519 ubuntu-2204-lts 2024-05-19T14:31:31.354-07:00
From what I'm checking it looks like it's showing latest one.
--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost