顯示具有 Docker 標籤的文章。 顯示所有文章
顯示具有 Docker 標籤的文章。 顯示所有文章

2020年2月18日 星期二

[Docker] Common Command

1.confirm which images that we have
docker ls

2.install the specific image to container
docker container run -d --name "containerName" -p 8080:8080 "ImageName"

3.when you wanna close container
docker stop "containerName"

4.restart
docker container start "containerName"