Skip to content

Instantly share code, notes, and snippets.

@istepanov
Last active August 24, 2017 13:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save istepanov/0958404c30865911aeeb8b5b05c6e0b3 to your computer and use it in GitHub Desktop.
Save istepanov/0958404c30865911aeeb8b5b05c6e0b3 to your computer and use it in GitHub Desktop.
Reset 2FA on Docker GitLab image
docker exec -ti gitlab bash
cd /home/git/gitlab
sudo -u git -H bundle exec rails console production
User.find_each(&:disable_two_factor!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment