Tag: Docker
-
Docker Demos — Saving, importing, and running a container
Introduction It’s been a while, but thank you for checking in again! In one of our previous tutorials, we built a basic Docker container using nothing more than an Alpine Linux image and some container notes. As we’ve seen in other tutorials, we can extend this to run a myriad of other programs within the…
-
Docker Demos — Conda environments & containers
Introduction Welcome back! In one of our previous tutorials, we learned how to use Microsoft Visual Studio Code to build our first containers. In the tutorial, we constructed a container based on an Alpine image, version 3.14. Given the size of the image, however, we did not have access to any coding languages such as…
-
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…
-
Docker Demos — Getting started in VS Code
Docker within Microsoft VS Code Welcome back! So here we are inside VS Code; by the way, if your VS Code terminal does not open with the bottom terminal, you can open the terminal by going to View (top toolbar) -> Terminal. Let’s take a look around! On the far left, we have all of…