Improve the performance of your Docker development environment

Thing you want to do

Comfortably run Docker container environment (especially VSCode Remote Containers)

Method

Use How to exclude some when mounting Volume with Docker to mount the volume of build files etc. (where you write it in .gitignore) remove.

Background

When I built code using VSCode's Remote Container, it became slow, and suddenly ** Docker host went down **, so I couldn't figure out what was the cause at first. .. When I suspected that the cause was a high load on the mount file, I solved it and improved the performance.

If you use Remote Containers, you don't need to mount them during development, so it seems to be more effective than using the cached option.

sample

Sample repository using this method

reference

finally

Remote Conyainers Nice!

Recommended Posts

Improve the performance of your Docker development environment
Docker the development environment of Ruby on Rails project
A reminder of Docker and development environment construction
Procedure for introducing Docker into the development environment of existing Rails applications [Rails, MySQL, Docker]
Introduce Docker to the development environment and test environment of existing Rails and MySQL applications
[First team development ③] Share the development environment created with Docker
SSL in the local environment of Docker / Rails / puma
Make the strongest Laravel development environment (Docker) Japan time
Debug the VSCode + Docker + PHP development environment with XDebug.
WSL2 + VSCode + Docker development environment
Docker monitoring-explaining the basics of basics-
Organize your in-house development environment
Understand the basics of docker
Environment construction method and troubleshooter at the time of joint development (rails, docker and github)
Install by specifying the version of Django in the Docker environment
[Docker] List of errors that occurred when building the environment
Setting the baseURL in the axios module of Docker environment Nuxt
I tried to build the environment of WSL2 + Docker + VSCode
About the basics of Android development
About the current development environment (Java 8)
Build Unity development environment on docker
Use MailHog for checking emails in the development environment (using Docker)
I tried to build the environment of PlantUML Server with Docker
Build a browser test environment using Capybara in the Docker development environment
One file of Docker x Laravel threat! Build a local development environment with the minimum configuration
What I was addicted to when updating the PHP version of the development environment (Docker) from 7.2.11 to 7.4.x
[Be careful about changing the version of Xdebug! ] Create a development environment with Xdebug3 + docker + VS Code
Laravel development environment construction with Docker (Mac)
Sapper × Go (echo) × Docker development environment construction
Build a PureScript development environment with Docker
Build an environment of "API development + API verification using Swagger UI" with Docker
The story of updating SonarQube's Docker Container
How to execute with commands of normal development language in Docker development environment
Create Spring Boot-gradle-mysql development environment with Docker
[Docker] Development environment construction Rails6 / Ruby2.7 / MySQL8
Run Redmine in the local environment of Windows10 Pro-Use Docker Desktop for Windows
Verify the uniqueness of your email address
Spring Boot + Docker Java development environment construction
Build a Wordpress development environment with Docker
[Rails & Docker & MySQL environment construction] Could not find gem ‘mysql2 (> = 0.4.4, <0.6.0)’ in any of the gem sources listed in your Gemfile.
Introduction of IDOM engineer's development environment (physics)
Try the Docker environment on AWS ECS
Build an Ultra96v2 development environment on Docker 1
Item 63: Beware the performance of string concatenation
Lightweight PHP 7.4 development environment created with Docker
I tried migrating the portfolio created on Vagrant to the Docker development environment
Build a simple Docker + Django development environment
Build a development environment for Docker + Rails6 + Postgresql
Self-hosting with Docker of AuteMuteUs in Windows environment
Prepare the JVM language development environment with WSL
Build a WordPress development environment quickly with Docker
Build a simple Docker Compose + Django development environment
Prepare the environment of CentOS 8 with Sakura VPS
Support out of support in docker environment using centos6
Change the location folder of Docker image & container
Build a development environment for Docker, java, vscode
[First team development ②] Build an environment with Docker
Wordpress local environment construction & development procedure with Docker
Create a Spring Boot development environment with docker
What to do when ‘Could not find’ in any of the sources appears in the development environment with Docker × Rails × RSpec
About the solution of the error that occurred when trying to create a Japanese file of devise in the Docker development environment