From 8f8dadd0d5dd4425b15a8e6a13dea6eb0a56fa9c Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Thu, 6 Aug 2020 13:22:06 +0300 Subject: [PATCH] more docker --- docker/commands.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/commands.md b/docker/commands.md index 3b9f43b75..bf05ceaf2 100644 --- a/docker/commands.md +++ b/docker/commands.md @@ -196,6 +196,7 @@ ERRO[0001] error getting events from daemon: net/http: request canceled {id: run-container-as-a-daemon-attach-detach} {i: attach} {i: -d} +{i: exec} * Run as a Daemon in the background name it 'test' @@ -205,6 +206,13 @@ docker run -d --rm -it --name test busybox * Check if it is running using `docker ps` +Run things on it + +``` +docker exec CONTAINER command (eg ls, cat ...) +``` + + * Attach to it: ```