for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Can't type command after start container

Open EnziinSystem opened this issue 9 years ago • 4 comments

Expected behavior

It can type text in Power Shell after start container.

Actual behavior

After start container, I can't type any command in terminal.

Information

  • Diagnostic ID from "Diagnose & Feedback" in the menu.
  • a reproducible case if this is a bug, Dockerfiles FTW
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version (Windows version, build number, etc)

Steps to reproduce the behavior

  1. Step 1: start container but can't type text.

step1

  1. Step 2 : Press CTRL+C and attach again

step2 step3 step4

And log file, I run on Windows 10, ubuntu 17.04 image

log.txt

EnziinSystem avatar May 13 '17 04:05 EnziinSystem

Have you tried starting your container with the "-i, --interactive" option?

Usage: docker start [OPTIONS] CONTAINER [CONTAINER...]

Start one or more stopped containers

Options: -a, --attach Attach STDOUT/STDERR and forward signals --checkpoint string Restore from this checkpoint --checkpoint-dir string Use a custom checkpoint storage directory --detach-keys string Override the key sequence for detaching a container --help Print usage -i, --interactive Attach container's STDIN

mechanic22 avatar May 16 '17 12:05 mechanic22

Thanks, mechanic22!

EnziinSystem avatar May 16 '17 14:05 EnziinSystem

@EnziinSystem I am going to close this issue since using -i is the way to solve your problem

dgageot avatar May 20 '17 16:05 dgageot

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jun 22 '20 03:06 docker-robott