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)
Last updated
Was this helpful?