Last active
February 25, 2020 10:21
-
-
Save rtatarinov4xxi/124c5779b824ce51eb1cd015b41f8ac4 to your computer and use it in GitHub Desktop.
Docker usefull command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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