找到你要的答案

Q:Can I Run docker on linux mint 13? [closed]

Q:我可以运行在Linux Mint 13泊坞窗?[关闭]

I've tried to install docker on my machine, following the instructions for Precise 12.04 found here.

When I try:

curl -sSL https://get.docker.com/ | sh

I get the result:

Either your platform is not easily detectable, is not supported by this installer script (yet - PRs welcome! [hack/install.sh]), or does not yet have a package for Docker. Please visit the following URL for more detailed installation instructions:

https://docs.docker.com/en/latest/installation/

My kernel:

$ uname -r
3.13.0-61-generic 

我想在我的机器上安装工人,以下说明在这里找到精确的12.04。

当我尝试:

curl -sSL https://get.docker.com/ | sh

我得到了结果:

Either your platform is not easily detectable, is not supported by this installer script (yet - PRs welcome! [hack/install.sh]), or does not yet have a package for Docker. Please visit the following URL for more detailed installation instructions:

https://docs.docker.com/en/latest/installation/

我的内核:

$ uname -r
3.13.0-61-generic 
answer1: 回答1:

You can download the short installer script to take a look at why it is giving you this message:

curl -sSL https://get.docker.com/ >install-docker.sh
$EDITOR install-docker.sh

Doing that, I see several checks for lsb_release. Is your system missing that command? If so, see this to install it. Or maybe it’s not returning “ubuntu”. If you fix this, the docker installer script may work fine.

If that doesn’t work, you can hard-code a case for your OS (Mint?) in the ubuntu|debian case (line 243), like:

ubuntu|debian|linuxmint)  # or maybe you’ll need here: *)

When done editing (or installing lsb_release), run the script to see if it will complete:

sudo ./install-docker.sh

你可以下载短安装脚本,看看它为什么给你这个消息:

curl -sSL https://get.docker.com/ >install-docker.sh
$EDITOR install-docker.sh

这样做,我看到lsb_release多次检查。您的系统缺少该命令吗?如果是,请参见此安装。也许这不是返回“Ubuntu”。如果你解决这个问题,码头工人安装脚本可能工作的很好。

如果这不工作,你可以硬编码的情况下,为您的操作系统(薄荷?)在Ubuntu | Debian案例(243行),如:

ubuntu|debian|linuxmint)  # or maybe you’ll need here: *)

完成编辑后(或安装lsb_release),运行该脚本是否会完成:

sudo ./install-docker.sh
linux  ubuntu  docker  mint