> For the complete documentation index, see [llms.txt](https://cleberjamaral.gitbook.io/mind/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cleberjamaral.gitbook.io/mind/knowledge/it/containers-1/docker.md).

# deploying busybox

Deploying busybox sample docker container

### Pulling and running busybox image

* Pulling the image `$ docker pull busybox`
* Executing a simple command on busybox `$ docker run busybox echo "hello from busybox"`
  * Executing and automatically deleting busybox `$ docker run --rm busybox echo "hello from busybox"`

### Running terminal on busybox

* Open terminal on busybox `$ docker exec -it busybox sh`

### Deleting all stopped containers

* List last commands that ran recently`$ docker ps -a`
* Deleting stopped containers `$ docker container prune` or  `$ docker rm $(docker ps -a -q -f status=exited)`

###

###
