Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

gcloud command

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.

3 1 188