Skip to content

Instantly share code, notes, and snippets.

@dimasch
Last active May 7, 2024 08:29
Show Gist options
  • Save dimasch/57b7cee3f7f9d274253d to your computer and use it in GitHub Desktop.
Save dimasch/57b7cee3f7f9d274253d to your computer and use it in GitHub Desktop.
Clear a redis cache in Docker
docker exec -it container-name redis-cli FLUSHALL
@kamarton
Copy link

kamarton commented Aug 8, 2023

Works, but also gives me a failed to resize tty, using default size warning.

Better to use -i instead of -it:

docker exec -i container-name redis-cli FLUSHALL

-it parameter can be omitted:

docker exec container-name redis-cli FLUSHALL

@jhasudungan
Copy link

Thank You

@legito-dev
Copy link

Thank you!

@RobertoCodeEye
Copy link

it works!!, thank you!!

@gouz7514
Copy link

Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment