瀏覽代碼

adds commands for working with images

Alex Flores 9 年之前
父節點
當前提交
3d7f9aebfa
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      pages/common/docker.md

+ 8 - 0
pages/common/docker.md

@@ -18,3 +18,11 @@
 - Stop a container
 
 `docker stop {{container}}`
+
+- Start a container from an image and get a shell inside of it
+
+`docker run -it {{image}} bash`
+
+- Run a command inside of an already running container
+
+`docker exec {{container}} {{command}}`