Tag: Docker-Compose
-
Docker Demos — Running unit tests in Docker Compose
Introduction Hi, friend! Welcome back, and thank you for learning along with me. In our last tutorial, we learned how to build a Docker container and simultaneously run a Bash file within the container to iteratively call a Python script. But what if the Python script is some sort of analysis tool? Following good programming…
-
Docker Demos — Iteratively call a file in a running container
Introduction Welcome back, and thank you for joining for for another Docker tutorial. As we alluded to in a previous post, the skills and capabilities we’ve begun to acquire are starting to become quite powerful. From the very beginning, we’ve installed Docker on Windows, learned about the Docker Desktop interface, learned about Docker containers, built…
-
Docker Demos — Cleaning up
Introduction It seems like every time we have a new application, there’s a need to clean or remove some piece of electronic garbage we may have left behind! In this short tutorial, we’ll discuss some techniques for cleaning up after ourselves in the Docker world. Since our previous tutorials have worked with both Docker and…
-
Docker Demos — Populating a shared volume with a local directory
Introduction Thank you for joining for another segment of Docker Compose skill building! In our last segment, we saw how to share a volume between two containers. We demonstrated the shared volume by showing that the shared volume directory in both containers was empty; we then added a file (“dog.png”) to one of the containers,…
-
Docker Demos — Sharing a volume between two containers
Introduction Welcome back! In our last segment, we discussed attaching two containers to a single network within a Docker Compose file. This entailed defining a network within each service (in turn defining each container), as well as defining a network outside of the services section. This ensured that we defined a network with a memorable…
-
Docker Demos — Two containers and a network
Introduction Welcome back and thank you for sticking with me! In a previous post, we wrote our first Docker Compose script which identified and ran the Docker file from our first lesson. We also demonstrated some of the different command line arguments associated with Docker Compose, and differentiated between attached and detached containers. In this…
-
Docker Demos — Getting started with Docker Compose
Introduction In our last post, we learned our way around Microsoft VS Code and built our first container using our first Docker file! But we can take one more step into abstraction by creating a file to build and run our container for us. Thankfully, Docker Desktop comes with a tool to do this, called…