docker -v | docker --version
docker compose version
docker search <keyword> Tìm các image
docker pull <iamge_name> Pull image
docker images Danh sách các image
docker run <image_id> | docker run -it <image_id> Tạo/Chạy container từ image
docker ps Danh sách container đang chạy
docker ps -a Danh sách tất cả container
docker stop <container_id> Dừng container đang chạy
docker start <container_id> Chạy container đã có
docker rm <container_id> | docker rm -f <container_id> Xóa container
docker exec <container_id> <command> <path/to/dir> Chạy lệnh terminal trong container
Không có nhận xét nào:
Đăng nhận xét