Skip to content

Instantly share code, notes, and snippets.

@vmpartner
Created May 14, 2020 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmpartner/f1caae9cb2ef464ba9747d6133616356 to your computer and use it in GitHub Desktop.
Save vmpartner/f1caae9cb2ef464ba9747d6133616356 to your computer and use it in GitHub Desktop.
Clean docker php sessions
for fn in $(docker ps -aqf "name=php"); do
docker exec $fn /usr/lib/php/sessionclean
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment