0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

docker使い始めたので自分でよく使うコマンドをメモ

Posted at
  • dockerコマンド
docker build -t [イメージ名] . #カレントディレクトリのDockerfileをビルド -tで名前付け
docker run -d -p 80:80 [image_id] #80:80ポートでバックグランドでイメージをコンテナで起動
docker ps #今起動しているdocker
docker container ls #コンテナ一覧
docker container rm [container_id] #コンテナ削除
docker container stop [container_id] #コンテナ停止
docker image ls [image_id] #dockerimage一覧
docker image rm [image_id] #dockerimage削除
docker exec -it [container_id] #起動中のdockerに入る
docker system prune #dockerの中のキャッシュファイルを削除
docker image prune #よくわからん
0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?