`
m635674608
  • 浏览: 5004650 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

Docker在windows下无法开启伪终端解决方法

 
阅读更多

在windows下面安装了docker以后,运行docker run -it ubuntu /bin/bash失败,提示错误“cannot enable tty mode on non tty input”。
解决问题的参考链接

总结一下

我自己用了两种方案都成功了。
第一种在命令前面加上winpty

winpty docker run -it ubuntu

第二种方案更好(为什么自己去感受吧)

docker-machine ssh defaultdocker run -it ubuntu /bin/bash

具体的一些原因和原理上面的链接里面有提到,但是我只是关注问题已经解决了,所以没有仔细去看。大致就是这个问题是MINGW64这些工具的产生的,而不是docker本身产生的。而且这个问题还没有被关闭,所以等以后应该会有更好的解决方案吧。

分享到:
评论

相关推荐

    完美解决Windows10下无法对docker容器进行端口访问的操作

    原因:docker是运行在Linux上的,在Windows中运行docker,实际上还是在Windows下先安装了一个Linux环境,然后在这个系统中运行的docker。 也就是说,服务中使用的localhost指的是这个Linux环境的地址,而不是我们的...

    windows下安装docker

    解决办法是手动下载所需的 Boot2Docker 版本,并将其放置在指定的目录下。 1. 访问 [https://github.com/boot2docker/boot2docker/releases](https://github.com/boot2docker/boot2docker/releases) 查找适用于当前...

    Docker for Windows Installer.zip

    Docker for Windows Installer

    Windows版本docker安装包

    在Windows操作系统上安装Docker,可以借助Docker Desktop或者Docker Toolbox。这里我们将重点讨论与"Windows版本docker安装包"相关的知识点。 **Docker Desktop for Windows** Docker Desktop是Docker为Windows用户...

    Docker for Windows Installer

    双击Docker for Windows Installer.exe以运行安装程序。 如果您尚未下载安装程序(Docker for Windows Installer.exe),可以从download.docker.com获取。。 2.按照安装向导接受许可证,授权安装程序,然后继续...

    Docker on Windows From 101 to production with Docker on Windows, 2nd.epub

    Learn how to run new and old applications in Docker containers on Windows - modernizing the architecture, improving security and maximizing efficiency.

    docker windows 安装包

    docker windows 安装包

    Docker 安装包(Windows版)

    Docker 安装包(Windows版)

    Docker for Windows Installer 版本

    Docker for Windows Installer 版本Docker for Windows Installer 版本

    Docker for Windows

    docker for windows,强行50字,windows版绿色安装版docker

    Docker windows版本

    要先用git里面的sh,就可以正常使用linux模拟环境,在用...Docker windows版本Docker windows版本Docker windows版本Docker windows版本Docker windows版本Docker windows版本Docker windows版本Docker windows版本

    Docker for Windows Installer 2018-08-27 版本Version 18.06.1-ce-win73 (19507)

    总结来说,Docker for Windows 18.06.1-ce-win73 (19507)是一个适用于Windows 10用户的Docker社区版安装包,提供了一站式的解决方案,让开发者可以在本地环境中轻松管理Linux和Windows容器,促进了高效的应用开发和...

    docker在windows及mac下安装教程

    ### Docker在Windows及Mac下的安装教程 #### 一、前言 Docker 是一款非常流行的容器化技术,它能够帮助开发者快速地构建、部署和运行应用。为了更好地使用 Docker,了解其在不同操作系统上的安装方法至关重要。本文...

    Docker Desktop for Windows 10 (Docker Desktop Installer.exe)

    Docker Desktop for Windows 10 是一个官方提供的强大工具,它允许用户在Windows 10操作系统上轻松运行Docker容器化应用。Docker Desktop整合了Docker引擎、Docker CLI客户端、Docker Compose、Kubernetes(可选)...

    Docker on Windows

    Docker on Windows by Elton Stoneman English | 14 July 2017 | ISBN: 1785281658 | 358 Pages | AZW3/EPUB/MOBI/PDF (conv) | 23.77 MB Key Features Start building applications as Docker images and running...

    Docker on Windows.pdf

    Learn how to run new and old Windows applications in Docker containers. About This BookPackage traditional .NET Frameworks apps and new .NET Core apps as Docker images, and run them in containers for ...

    Docker on Windows_From 101 to production with Docker on Windows-Packt 2017.epub

    You can run Docker on Windows Server 2016 and Windows 10, and run your existing apps in containers to get significant improvements in efficiency, security, and portability. This book teaches you all ...

    Docker for Windows安装包

    很多人说Docker官网下载很慢,所以可以在这里提取工具,至于 DockerToolbox.exe下载还蛮快的,就没贴,有需要可以留言(因为大于传输上限了,所以只能发某盘链接)

    4.4.4版本windows-docker.zip

    这个版本可能是针对4.4.4版Docker Engine进行优化和更新的,确保了在Windows环境下的稳定性和兼容性。 【描述】"4.4.4版本windows-docker.zip"是一个压缩包,包含了运行和管理Docker所需的所有组件,如Docker引擎、...

Global site tag (gtag.js) - Google Analytics