LoginSignup
0
0

サクッとdockerで試すときのコマンドたち

Last updated at Posted at 2021-04-20

docker作り込んでるときは覚えてるだけど、久しぶりにhelperとかない環境でいつもググってしまうのでメモ。

docker pull golang # イメージ取得
docker run -itd golang # コンテナ起動
docker attach {コンテナID} # シェル的なもので接続
docker stop {コンテナID} # コンテナ停止

コンテナ名はdocker run後にdocker psで取得可能

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