LoginSignup
0
0

More than 1 year has passed since last update.

docker

Last updated at Posted at 2022-08-27

dockerコマンド

docker imags ls
docker image rm imageID
docker image prune
docker image pull imageName(docker pull centos:latest)

image1


docker container run -it Name sh

コンテナストップ
docker container stop containerName

コンテナ一覧
docker container ls(起動中のみ)
コンテナ一覧(停止中のコンテナも表示)
docker container ls -a
コンテナ削除
docker container rm Dockerコンテナ名
docker container prune

コンテナとイメージ(使用されていないものを削除)
docker system prune

image2 image

dockerfile run は少なるするとイメージサイズを小さくできる
;\でコマンドをつなげることができる
latest はなるべくさける

kubectl exec -it POD sh

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0