In the last chapter, we saw how to install Docker and ensure the Docker daemon is up and running. In this chapter we’re going to see how to take our first steps with Docker and work with our first container. This chapter will provide you with the basics of how to interact with Docker.
We’re going to start with checking that Docker is working correctly, and then we’re going to take a look at the basic Docker workflow: creating and managing containers. We’ll take a container through its typical lifecycle from creation to a managed state and then stop and remove it.
Firstly, let’s check that the
docker binary exists and is functional: