[RUBY] 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
Frequently used functions and commands of Xcode
Docker Frequently used commands
Introduction to Docker (1) Frequently used commands
[Webpacker] Summary of how to install Bootstrap and jQuery in Rails 6.0
[Rails Struggle/Rails Tutorial] Summary of Heroku commands
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
(Basic authentication) environment variables in rails and Docker
[Rails] Ranking and pagination in order of likes
Docker terms and commands
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
Overview of Docker and containers
Summary of FileInputStream and BufferedInputStream
Docker Compose basics and commands
Summary of copy and paste commands used when you want to delete the cache in iOS application development anyway
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
[Rails Struggle/Rails Tutorial] Summary of Rails Tutorial Chapter 2
Summary of rails validation (for myself)
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
Summary of Docker commands that I often use but can't remember
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
Put Kanban in Docker of Raspberry Pi 3
Building Rails 6 and PostgreSQL environment with Docker
Kind @ Mac in Docker and vctl container
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
Show Better Errors in Rails + Docker environment
[Ruby] Classification and usage of loops in Ruby