[DOCKER] Common problems with WSL and how to deal with them

1. Contents of this article

Introducing common troubles using WSL (Windows Subsystem for Linux) and how to deal with them. When new troubles occur, I would like to add them as needed.

1-1. Usage environment

2. Common troubles and countermeasures

2-1. I can't log in to WSL from PowerShell / WSL suddenly drops

After starting WSL from PowerShell, you may not be able to log in without displaying an error message, or you may suddenly be forcibly logged out. The cause is unknown, but the problem can be solved by starting LxssManager according to the following procedure.

  1. Start PowerShell with administrator privileges
  2. Execute the following command to start LxssManager.
> net start LxssManager
> net stop LxssManager
> net start LxssManager

2-2. nvidia-docker cannot be started from WSL (cannot connect to GPU)

When executing the run command of nvidia-docker from WSL, the following message may be displayed and the Docker container may not be started.

docker: Error response from daemon: OCI runtime create failed: container_linux.go ~

When connecting to GPU from WSL with nvidia-docker, it is necessary to install CUDA on Windows Subsystem for Linux (WSL) --Public Preview instead of the standard driver, but WSL is automatically updated by the driver. It seems that it may be updated to an unsupported driver.

The problem has been solved by downloading and updating the driver from CUDA on Windows Subsystem for Linux (WSL) --Public Preview.

3. In the end

We have summarized the troubles and countermeasures encountered while using WSL as a deep learning environment. Since the Insider Preview frequently updates Windows, new troubles may occur, but I have the impression that there are fewer troubles than I had expected.

4. Related links

Recommended Posts

Common problems with WSL and how to deal with them
Java8 / 9 Beginners: Stream API addiction points and how to deal with them
How to deal with different versions of rbenv and Ruby
[Ruby] 5 errors that tend to occur when scraping with Selenium and how to deal with them
[Android] How to deal with dark themes
[Tips] How to solve problems with XCode and Swift for beginners
How to deal with Precompiling assets failed.
[Node.js express Docker] How to define Docker environment variables and load them with node.js
Git and GitHub ~ How to fix common errors ~
How to build API with GraphQL and Rails
Rails scope anti-patterns and how to eliminate them
twitter-4 selections of certain errors with Twitter login function created by omniauth gem and how to deal with them
Diet program with preprocessor (how to deal with i-appli size)
[Java] Types of comments and how to write them
How to deal with fatal: remote origin already exists.
How to deal with No template for interactive request
[Rails] How to deal with URL changes after render
How to serialize and deserialize LocalDateTime type with GSON
How to use RealSense with ubuntu 20.04 and ROS Noetic
How to install Gradle and Kotlin with SDKMAN (Mac)
[Docker + Rails] How to deal with Rails server startup failure
[Docker] How to update using a container on Heroku and how to deal with Migrate Error
How to number (number) with html.erb
How to update with activerecord-import
How to transform ARKit and SceneKit shapes with Metal shader
How to deal with the error ERROR: While executing gem ... (Gem :: FilePermissionError)
How to deal with Bundler :: Dsl :: DSLError by rewriting gemfile
Cases where Rails fails to start due to an invalid config/master.key and how to deal with it
How to use StringBurrer and Arrays.toString.
[Rails / RSpec] How to deal with element has zero size error
How to get started with slim
How to deal with 405 Method Not Allowed error in Tomcat + JSP
How to use EventBus3 and ThreadMode
How to enclose any character with "~"
[Rails] How to introduce kaminari with Slim and change the design
How to call classes and methods
Android: How to deal with "Could not determine java version from '10 .0.1'"
How to use equality and equality (how to use equals)
How to connect Heroku and Sequel
How to convert LocalDate and Timestamp
Project facet Java version 13 is not supported. How to deal with
How to get along with Rails
Challenge to install WSL2 and docker
How to encrypt and decrypt with RSA public key in Java
How to start Camunda with Docker
How to deploy to AWS using NUXTJS official S3 and CloudFront? With docker-compose
How to realize hybrid search using morphological analysis and Ngram with Solr
[Swift] How to connect TabBar with Storyboard Reference and also use NavigationController
How to use args :, environment :, env_file: and .env files with docker-compose command
How to create a server executable JAR and WAR with Spring gradle
How to make an app with a plugin mechanism [C # and Java]
How to crop an image with libGDX
How to adjustTextPosition with iOS Keyboard Extension
How to use OrientJS and OrientDB together
How to compile Java with VsCode & Ant
[Java] How to compare with equals method
How to use BootStrap with Play Framework
[Rails] How to use rails console with docker
[Note] How to get started with Rspec
[Java] How to output and write files!
How to do API-based control with cancancan