I intend to run a docker container with command:
Code:
docker run \
-it \
--env="DISPLAY=$DISPLAY" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
--volume="/home:/home \
ubuntu:16.04
I COPY the command ,PASTE into the terminal,press ENTER ,then I got
Code:
lxq@ubuntu:~$ docker run \
> -it \
> --env="DISPLAY=$DISPLAY" \
> --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
> --volume="/home:/home \
> ubuntu:16.04
>
>
>
everytime I press ENTER,a `>`shows up.
I've tried `ctrl+c`,`ctrl+d`,but didn't work.
If I input the command manually,the command works fine.
My question is :
Why does it happen?
How can I fix it?(i.e. run the command using COPY and PASTE)
Thanks!
Bookmarks