Skip to content

Instantly share code, notes, and snippets.

@rtatarinov4xxi
Last active February 25, 2020 10:21
Show Gist options
  • Save rtatarinov4xxi/124c5779b824ce51eb1cd015b41f8ac4 to your computer and use it in GitHub Desktop.
Save rtatarinov4xxi/124c5779b824ce51eb1cd015b41f8ac4 to your computer and use it in GitHub Desktop.
Docker usefull command
// Encode password and get it
docker-compose exec php bin/console security:encode-password
// Clean all not useful containers
docker system prune -a
docker volume prune // WARNING! it command remove all database
// Update database by key
update users set "confirmed" = true // set all users confirmed
update users set "password" = '$2y$13$tbgx1NP/YnzuiJYtZBPF8.wHc72rB5qzc5nTsan5TniQZmZkmlj2i' // set all users password '1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment