Docker Community Forums

Share and learn in the Docker community.

Why I can not create MySQL container in my Win 10?

My System is Win10,and choice the windows docker.

But, when I input: docker run --name first-mysql -p 3307:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql

It shows me error.

docker: Error response from daemon: hcsshim::CreateComputeSystem eeabf7b39ec96acfdb5901451a8a68d4e4546b05eefde1a00ca75ba1598a298f: The virtual machine could not be started because a required feature is not installed.

(extra info: {“SystemType”:“container”,“Name”:“eeabf7b39ec96acfdb5901451a8a68d4e4546b05eefde1a00ca75ba1598a298f”,“Owner”:“docker”,“LayerFolderPath”:“C:\ProgramData\Docker\lcow\eeabf7b39ec96acfdb5901451a8a68d4e4546b05eefde1a00ca75ba1598a298f”,“Layers”:[{“ID”:“9b0f8657-425d-5918-ac11-48ce3132c779”,“Path”:“C:\ProgramData\Docker\lcow\004f3792d5870bc4f3812a179e5820be0fd4b0e3ff1d8eaa01a5c84361021570\layer.vhd”},{“ID”:“277fdff7-3eed-54f1-ba8a-62743e2f0c52”,“Path”:“C:\ProgramData\Docker\lcow\9467aa4447c7ddbc460288dbaafe2c7ce9dc47db959b4a8c89543953c2b6f0e5\layer.vhd”},{“ID”:“9bc22c82-bf0d-5044-8ac0-a05707a52e81”,“Path”:“C:\ProgramData\Docker\lcow\66f8a1756339c9742eba47c460722ffe636d62e8a8add3f3cbeb940356ed1368\layer.vhd”},{“ID”:“7f23356d-9a1c-5b25-bec1-c328d58d21e0”,“Path”:“C:\ProgramData\Docker\lcow\3ea8225aa2c30724b8d3cf68fef03f4ab2cd3c5d9a5d9988d24f6da0b6fdf98d\layer.vhd”},{“ID”:“b4874eaa-a40f-5f30-88d0-f18ebe3c3c90”,“Path”:“C:\ProgramData\Docker\lcow\9aa35e9f76fa9a743633ac2d9970136b665b358e613a198a62fb6710d6bf14dc\layer.vhd”},{“ID”:“984941cb-e84f-5f56-a0e9-5183dcce5850”,“Path”:“C:\ProgramData\Docker\lcow\8a6d23b5f9a470a5960283418623ee7e41a758c4c9f93a945c06e4800aa01544\layer.vhd”},{“ID”:“0ce562bf-8dd9-56a7-bf2e-3eabb7013bea”,“Path”:“C:\ProgramData\Docker\lcow\9263d27f9ed50222072a1a8fc424fd510ae23ed2a51316d9bfc097ad7b183173\layer.vhd”},{“ID”:“59fe7c58-a84d-584e-bcd0-8ebe9506056a”,“Path”:“C:\ProgramData\Docker\lcow\27d8ebecacf2765f516053edc6f2ac353cbd238980fd115b355a822c39bff1ce\layer.vhd”},{“ID”:“c0628a62-aedf-5d44-915a-179aef0244ad”,“Path”:“C:\ProgramData\Docker\lcow\c3f85c799186140aa1ddf1934f56e2fdd0bc4873b35b853d32d0235a0494d0b5\layer.vhd”},{“ID”:“2094af01-3f5e-5ca9-af3b-7514ece978ce”,“Path”:“C:\ProgramData\Docker\lcow\e260b4d9081dd725c4b9697bd83f5cc120a7a6282275ff2d0a1ce2df8bc494f3\layer.vhd”},{“ID”:“25636c5f-e216-5598-b965-af0ab98843dc”,“Path”:“C:\ProgramData\Docker\lcow\d9753b8c39ccf4f93e2d4e14dfde7bf725f81898d77867dbe2654ad842f104e7\layer.vhd”},{“ID”:“37efc24c-2630-5b0e-9def-9cbf548f9df0”,“Path”:“C:\ProgramData\Docker\lcow\b7d0845a499404847b863cad499ad31ad0f391cfc095c91a5fb5410712b2b7f6\layer.vhd”}],“MappedDirectories”:[{“HostPath”:“C:\ProgramData\Docker\volumes\c8044c540413f4632ac6655de8db2e9edaff8b34e025ddf3a9529f472d0edf89\_data”,“ContainerPath”:"/tmp/gcs/eeabf7b39ec96acfdb5901451a8a68d4e4546b05eefde1a00ca75ba1598a298f/binds/var/lib/mysql",“ReadOnly”:false,“BandwidthMaximum”:0,“IOPSMaximum”:0,“CreateInUtilityVM”:true,“LinuxMetadata”:true}],“HvPartition”:true,“EndpointList”:[“9B1D1E2F-FB3B-4AAB-8706-D2F964D474A6”],“HvRuntime”:{“ImagePath”:“C:\Program Files\Linux Containers”,“LinuxInitrdFile”:“initrd.img”,“LinuxKernelFile”:“kernel”},“AllowUnqualifiedDNSQuery”:true,“ContainerType”:“linux”,“TerminateOnLastHandleClosed”:true}).


But my system is windows 10, and not switch to Linux containers.

How can create a MySQL container?

First of all, delete the software of MySQL in your computer or laptop and install the update version again, then try to connect once again and once you read about multiple ts sessions allow you to multitasking. can do

The mysql official image is a linux-based one. You can only create linux containers from it.