Playing With Busybox
Now that we have everything setup, it’s time to get our hands dirty. In this section, we are going to run a Busybox container on our system and get a taste of the docker run command.
To get started, let’s run the following in our terminal:
$ docker pull busyboxNote: Depending on how you’ve installed docker on your system, you might see a
permission deniederror after running the above command. If you’re on a Mac, make sure the Docker engine is running. If you’re on Linux, then prefix yourdockercommands withsudo. Alternatively, you can create a docker group to get rid of this issue.
The pull command fetches the busybox image from the Docker registry and saves it to our system. You can use the docker images command to see a list of all images on your system.
$ docker imagesREPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZEbusybox latest c51f86c28340 4 weeks ago 1.109 MB