无法使用命令“docker exec -it xxx cmd”进入容器在背景容器上 [英] can not get into the container using the command "docker exec -it xxx cmd" on the background container

查看:66
本文介绍了无法使用命令“docker exec -it xxx cmd”进入容器在背景容器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,所有

我使用命令"

docker run -d -p 80:80 microsoft/iis:windowsservercore ping -t localhost",

然后执行命令"docker" exec -it xxx cmd"进入容器,

但没有任何反应,有人知道为什么吗?

but nothing happened, does anybody knows why?

推荐答案

不要使用PowerShell ISE,请使用普通的PowerShell shell。

Do not use PowerShell ISE, use plain PowerShell shell.

ps有时,再次按Enter键。

p.s Some times, press Enter again.


这篇关于无法使用命令“docker exec -it xxx cmd”进入容器在背景容器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆