标签:http actual rip power lsb extra cat alias started
To install the Docker engine on Windows, just go to docker.com and download the appropriate distribution. Also, make sure hardware virtualization is enabled and Hyper-V is installed, lest the engine won’t start.
With Windows 10 Creators Update, accomplishing all of this has become a lot simpler, since it allows you to run Windows executables from Bash. Just add these two lines to your .bashrc
(and reload your environment) and you’re done!
You can now run docker --version
from Bash, and you don’t even have to read the rest of this blog post :)
To install Docker on the WSL, you’ll need to jump through a few more hoops. There’s a description for Ubuntu in general here, which works for the WSL as well, with the exceptions of some of the optional steps. Here’s what I did:
Of course, there’s also the option of downloading and extracting the binaries we’ll need, and put them somewhere in your PATH
. There are instructions here for how to get the latest version.
We now actually have the Docker engine installed on both Windows and the WSL, but it isn’t started on either. The Windows installer helpfully created a Docker shortcut on the desktop and/or in the Start menu – use that to start the Docker engine. Then, you can try running e.g. docker images
from PowerShell and from Bash:
PowerShell:
We haven’t created any images yet, so that’s fine.
标签:http actual rip power lsb extra cat alias started
原文地址:https://www.cnblogs.com/nhz-M/p/11044665.html