1. 程式人生 > >關於docker使用run命令加上引數-it時出現the input device is not a TTY. If you are using mintty, try prefixing the

關於docker使用run命令加上引數-it時出現the input device is not a TTY. If you are using mintty, try prefixing the

最近在用docker時建立redis的映象時,使用命令
docker run -it --name redis-master redis /bin/bash
出現問題
the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'
就算加上winpty在字首,也出現問題
/usr/local/bin/docker-entrypoint.sh: 16: exec: C:/Program Files (x86)/Git/usr/bin/bash.exe: not found

最後採用了命令才解決問題

winpty docker run -it --name redis-master redis bash

如果採用這種方法的話要退出容器但是不結束容器可以採用按住ctrl+p+q,如果想要退出同時結束容器可以採用輸入命令exit

同時,如果採用第一種方式的,要想再次進入容器可以使用命令winpty  docker attach 容器名/容器Id

還有問題就是使用-v掛載檔案+winpty控制輸入流的的時候出現的問題

Error response from daemon: invalid mode: \Program Files (x86)\Git\usr\src\app.
invalid volume specification: '/c/Users/Administrator/project/Django/App1:~/usr/src/app': invalid mount config for type "bind": invalid mount path: '~/usr/src/app' mount path must be absolute.

我才用一下方法解決,拋棄了winpty

docker run -it -d --name App1 --link redis-master:db  -v /project/Django/App1:/usr/src/app django /bin/bash

相關推薦

關於docker使用run命令加上引數-it出現the input device is not a TTY. If you are using mintty, try prefixing the

最近在用docker時建立redis的映象時,使用命令docker run -it --name redis-master redis /bin/bash出現問題the input device is not a TTY. If you are using mintty,

umount 出現的 "Device is busy"問題

出了 通用 aud cas 一個 set kill 如果 use linux下umount時出現錯誤: [root@localhost ~]# umount /home/ umount: /home: device is busy. (In some cas

[IDEA]IntelliJ IDEA匯入JDK出現The selected directory is not a valid home for JDK問題的解決方法

昨天在實驗室的桌上型電腦上配置Java。之前一直在MAC上都是使用IntelliJ IDEA玩耍,這次也不能少了它。馬上上官網下載了一個Windows版的,用學生帳號註冊完之後,就可以直接使用了!但是在匯入JDK的時候遇到了問題 ,下圖是新增JDK的介面: 點選new按鈕後出現下圖:

USB除錯出現“because an app is obscuring a permission request settings cab't verify your resonse”問題

Android 除錯遇到了一個奇葩的問題,usb除錯授權時提示“Because an app is obscuring a permission request settings cab't verify your resonse”,中文翻譯(因為應用程式模糊了許可權請求設定,所以不能驗證你的共振)

CentOS6.8中安裝Nginx出現 C compiler gcc is not found問題

已經按照好gcc之後還是會顯示 C compiler gcc is not found問題,嘗試了網上很多安裝gcc的方法都不可用。 1.原因分析: configure首先會編譯一個小測試程式,通過測試其執行結果來判斷編譯器是否能正常工作,由於交叉編譯器所編譯出的程式是無法在編譯主機上執

使用表單在springMVC的後臺上傳檔案遇到500錯誤:The current request is not a multipart request

一、我出現錯誤的原因 是在前端的表單屬性裡沒有加入這一屬性enctype="multipart/form-data",然後繼續執行Tomcat, 上傳還是報一樣的錯誤,繼續認真觀看,發現我使用表單的預設提交方式,所以把提交方式改為method="post", 再次執行T

layUI表單提交,控制檯出現$(...)serializeObject is not a function錯誤——解決方案

先上錯誤:這個錯誤是在控制檯爆出的錯誤,序列化表單,點選儲存按鈕是出現$(...)serializeObject is not  a function,這個錯誤的意思是找不到serializeObjec

ubuntu下IDEA配置tomcat報錯Warning the selected directory is not a valid tomcat home

warn 技術 span 更改 文件目錄 tor 選擇 spa .com 產生這個問題的主要原因是文件夾權限問題。 可以修改文件夾權限或者更改tomcat文件目錄所有者。 這裏我直接變更tomcat文件夾所有者: sudo chown -R skh:skh tomcat-

SpringMVC——jsp上傳圖片報錯The current request is not a multipart request的解決辦法

報錯介面如下:   主要報錯語句為: The current request is not a multipart request 就是說當前這個請求不是一個multipart request,也就是說不是上傳檔案的請求。 那怎麼辦呢? 這裡我們需要知道一點,

NPM 報錯--fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module

fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module      解決:升級npm npm info graceful-fs

解決springMVC檔案上傳報錯: The current request is not a multipart request

轉自:https://blog.csdn.net/HaHa_Sir/article/details/79131607 解決springMVC檔案上傳報錯: The current request is not a multipart request  一、問題描述在使用springMVC做檔案上

檔案上傳相關報錯: The current request is not a multipart request或is a MultipartResolver configured?

1:The current request is not a multipart request    1:from中涉及到圖片上傳的就要用post提交方式。否則就會報這個錯誤。    2:第一中:在jsp頁面的<head></head>標籤裡面加上&

IntelliJ IDEA The selected directory is not a valid home for JDK 錯誤解決辦法

最近想學java,安裝了IntelliJ IDEA,建立了一個hello world專案。 可是說需要我首先配置SDK,那就配吧 可是當我選擇了java安裝目錄時,IntelliJ IDEA卻提示錯誤 The selected directory is not a valid home for JDK

安裝CUDA 出現libEGL.so.1 is not a symbolic link libcudnn.so.5 is not a symbolic link

在安裝CUDA之後總是會出現連結問題 /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link /usr/

The current request is not a multipart request

今天犯了一個特別2的錯誤,再用Springmvc MultipartFile 上傳檔案時候提交form表單時候一直提交不上去,採用了各路大神的辦法,無濟於事,後來猛然醒悟。form表單提交post請求

SpirngMVC檔案上傳與下載org.springframework.web.multipart.MultipartException: The current request is not a m

最近在專案中,使用springmvc 進行上傳檔案時,出現了一個問題: org.springframework.web.multipart.MultipartException: The current request is not a multipart reques

非常牛叉的樓主,自己的問題其實就是答案--用springmvc上傳檔案時報The current request is not a multipart request異常

http://bbs.csdn.net/topics/380167574?page=1 非常牛叉的樓主,自己的問題其實就是答案 原因在於目錄下有一個upload檔案導致的 小弟我用spring3.1.0做了一個上傳檔案的例子,但發現一個奇怪的問題

Spring mvc 上傳圖片遇到The current request is not a multipart request的問題

org.springframework.web.multipart.MultipartException: The current request is not a multipart request

The current request is not a multipart request異常

ENCTYPE="multipart/form-data"用於表單裡有圖片上傳。  <form name="userInfo" method="post" action="first_submit.jsp"    ENCTYPE="multipart/form-data">  表單標籤中設定en

Win10安裝MySQL5.5.62後第一次通過命令列視窗登入出現ERROR 1045 (28000): Access denied for user 'root'@'localhost'的解決措施

開啟MySQL目錄下的my.ini檔案 (在安裝路徑的資料夾內,Win10預設安裝,my.ini在C:\Program Files\MySQL\MySQL Server 5.6) .本人安裝mysql的路徑是自定義的 一般軟體我都會安裝在單獨分割槽的軟體盤內 找到這個檔案後,在檔案的最後新增