gefyrahq / gefyra

Blazingly-fast :rocket:, rock-solid, local application development :arrow_right: with Kubernetes.
https://gefyra.dev
Apache License 2.0
692 stars 28 forks source link

gefyra run --no-cache option? #645

Closed buschNT closed 4 months ago

buschNT commented 4 months ago

What is the new feature about?

In some cases it might be useful to ensure that the used image during a docker run is pulled freshly from an external container repository. Thus I suggest the addition of a gefyra run "--no-cache" flag

Why would such a feature be important to you?

I run into python dependency issues because the gefyra run command used an 2 month old image on my local machine instead of the newest version in the external repository. I had to delete the local image first in order to get my setup working again. Maybe a --no-cache flag might be useful in some cases to prevent this issue. Furthermore, it might be helpful to shortly document this caching behavior in the CLI docs.

Anything else we need to know?

No response

SteinRobert commented 4 months ago

Good idea! Since we are mirroring docker run with gefyra run I would suggest to go with the --pull flag that is already provided by docker run: https://docs.docker.com/reference/cli/docker/container/run/#pull

What do you think @buschNT ?

buschNT commented 4 months ago

Yes, I agree. The --pull flag seems to be the better fit!

SteinRobert commented 4 months ago

Added in 2.2.1 :)