Skip to content

Commit

Permalink
more docker
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Aug 6, 2020
1 parent be9de67 commit 8f8dadd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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:

```
Expand Down

0 comments on commit 8f8dadd

Please sign in to comment.