Docker volumes

If you have been following along with the network example from the previous section, you should have two containers running, as shown in the following screenshot:

When you go to the application in a browser (at http://localhost:8080/), you will probably see that there already are Docker logos on screen. Let's stop and then remove the Redis container and see what happens. To do this, run the following commands:

$ docker container stop redis$ docker container rm redis

If you have your browser open, you may notice that the Docker icons have faded into the background and there is an animated loader in the center of the screen. This ...

Get Mastering Docker - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.