Summary of frequently used commands in Rails and Docker

docker-compose build #Creating a container
docker-compose up #Container launch
docker-compose down #Container down ctrl+It can be stopped with c, but server.Error with pid
docker-compose stop #Stop container
docker-compose up --build #Reboot the server after reflecting the changes in docker related files
docker images #Image list
docker ps #List of moving containers
docker ps -a #List including non-moving containers
docker rm `docker ps -a -q` #Bulk deletion of containers
docker rmi `docker images -a -q` #Bulk delete images
mysql -u root -p -h localhost -P 3306 --protocol=tcp #From Docker to MYSQL

docker-compose run web bundle install #bundle install
docker-compose run web rails db:create #db creation
docker-compose run web rails db:migrate #My Great

These are the commands I often use in Rails and Docker! I hope you find it helpful. If you make a mistake, please point it out.

Recommended Posts

Summary of frequently used commands in Rails and Docker
Summary of frequently used Docker commands
[Webpacker] Summary of how to install Bootstrap and jQuery in Rails 6.0
Summary of hashes and symbols in Ruby
Introduction of Docker Hub and commands Self-learning ①
Personal development: Summary of technologies used in comedy Gasha (scraping, Rails, Heroku)
[Github] Summary of commands often used during development
[Rails] Ranking and pagination in order of likes
It's just now, but a collection of commands that frequently appear in Rails
Personal summary of the guys often used in JUnit 4
List of frequently used Java instructions (for beginners and beginners)
SSL in the local environment of Docker / Rails / puma
Summary of FileInputStream and BufferedInputStream
Gem often used in Rails
Frequently used processes in SpreadSheet
rails console Frequently used operations
A collection of commands that were frequently used on heroku
git flow Frequently used commands Memo
Enable jQuery and Bootstrap in Rails 6 (Rails 6)
Summary of steps for developing in Docker container with VS Code
Summary of ORM "uroboroSQL" that can be used in enterprise Java
[Rails] Summary of complicated routing configurations
Frequently used methods in Active Record
Mechanism and characteristics of Collection implementation class often used in Java
How to delete large amounts of data in Rails and concerns
Remove "assets" and "turbolinks" in "Rails6".
CRUD features and MVC in Rails
[Rails] Differences and usage of each_with_index and each.with_index
Commands often used in MySQL operations
[Docker] Other frequently used (probably) Docker Instructions
Method definition location Summary of how to check When defined in the project and Rails / Gem
Ruby methods often used in Rails
[Rails] Difference in behavior between delegate and has_many-through in the case of one-to-one-to-many
Summary of basic migration knowledge rails db: rollback and column addition / deletion
How to execute with commands of normal development language in Docker development environment
A brief summary of DI and DI containers
Building Rails 6 and PostgreSQL environment with Docker
The identity of params [: id] in rails
Rails Addition of easy and easy login function
Summary of Docker understanding by beginners ② ~ docker-compose ~
[rails] List of actions defined in Controller
[EMMET notation] Basic, frequently used guy Emmet notation summary
Edit Mysql with commands in Docker environment
Summary of root classes in various languages
[Challenge Docker from 0] Overview and terms of Docker
[Ruby] Classification and usage of loops in Ruby
Java Summary of frequently searched type conversions
Japanese setting of mysql in Docker container
Commands that helped resolve errors in Docker
Summary of Java Math.random and import (Calendar)
Discrimination of Enums in Java 7 and above
Introduce Docker to the development environment and test environment of existing Rails and MySQL applications
[Rails 6] Specific method of embedding Font Awesome in link_to [Copy and paste OK]
[Rails5.2] Support for emoji of Mysql 5.7 in Docker (change character code to utf8mb4)
Summary of Docker understanding by beginners ④ ~ Until EC2 instance is started and docker is installed ~
Summary of how to select elements in Selenium
[Order method] Set the order of data in Rails
A summary of only Rails tutorial setup related
List of methods used in PAIZA D rank
[Docker] Introduction to docker compose Basic summary of docker-compose.yml
Summary of basic knowledge of Rails acquired by progate