Bạn có chắc chắn muốn xóa bài viết này không ?
Bạn có chắc chắn muốn xóa bình luận này không ?
Vài lỗi hay gặp trên Docker Windows 10
Hardware assisted virtualization and data execution protection must be enabled in the BIOS
Lỗi này xảy ra khi máy chưa enable cái virtualization ở Bios.
Cách check xem virtualization có enabled ko: Bật Task Manager > tab Performance
Cách xử lý: Vào BIOS rồi mò ra chỗ enable virtualization, mỗi máy mỗi khác :(
Error response from daemon: drive is not shared. Please share it in Docker for Windows Settings.
Lỗi này xảy ra khi container nằm trên partition chưa được share cho Docker.
Cách xử lý:
Vào Dashboard của Docker > Settings > Resources > Thêm partition
Not enough memory to start docker
Lỗi này xảy ra khi không đủ RAM
Cách 1: Nâng cấp RAM
Cách 2: Tải RAMMap Mở RAMMap > Emty > bấm Empty Working Sets và Empty System Working Set
Error response from daemon: Ports are not available: unable to list exposed ports
Lỗi này xảy ra khi Windows 10 tự khởi động lại các ứng dụng đang chạy dang dở ở trước lần tắt máy trước.
Cách xử lý: Restart Docker daemon
the input device is not a TTY. If you are using mintty, try prefixing the command with winpty
Cách xử lý: Chèn tiền tố winpty
vào trước câu lệnh. Trong câu lệnh nếu có /bin/bash
thì chuyển thành //bin/bash
VD:
docker.exe run -it --rm ubuntu:14.04 /bin/bash
Chuyển thành
winpty docker.exe run -it --rm ubuntu:14.04 //bin/bash






