[host] $ cd /opt/mastodon
[host] $ docker exec -it mastodon_web_1 /bin/sh
[mastodon] $ RAILS_ENV=production bundle exec rails c
irb> account = Account.create!(username: 'alice')
irb> user = User.create!(email: 'alice@example.com', password: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', account: account)
irb> user.confirm
irb> account.save!
irb> user.save!
irb> ^D
[mastodon] $ ^D
[host] $