ITや趣味など気軽に投稿しています。
TAG

docker

  • 2025年8月4日
  • 2025年8月4日

【Docker】Building a Docker Desktop Environment on Windows

This article will explain how to build a Docker environment on Windows. Docker is essentially Linux-based, but it now also supports Windows. System requirements The system requirements for installing Docker on Windows are as follows: Docker is a Linux-based application. To run it on Windows, you must create a virtual Linux environment using either WSL2 or Hyper-V. If you use the current Docker Desktop installer, WSL2 will install alongside it. The default distribution is Ubuntu. If you want to use a Linux distribution other than Ubuntu with WSL2, you must install the distribution separately. Installing Docker Desktop Download installer First, download the installer from the official website. https://docs.docker.com/desktop/release-notes Select and download the Windows installer for your desired version. The Docker Desktop Installer.exe file will download and then, run it. After launching the installer, a window will appear. Check the box to put the Docker Desktop icon on your desktop, then […]

  • 2025年8月3日
  • 2025年8月3日

【Docker】 From Dockerfile Creation to Image Creation and Container Launch

Docker is a virtualization program that uses container technology. What is Docker? What is a container? We have previously explained what containers are. But how do you actually create and run one? This article will show you how to start the container. The relationship between Dockerfiles, images, and containers First, create the container and organize the necessary files. Dockerfile A Dockerfile is a file used to create containers in Docker. It defines the operating system, software, and programs used by the container. A Dockerfile is often regarded as a “design document” for a container. Docker Image A Docker image is generated from a Dockerfile, which can be built and executed by the Docker Engine. Docker Container A container is generated from a Docker image. Containers are processes that execute, or launch, the image. Since containers are processes, multiple containers can be started from a single image. Thus, stopping or deleting […]

  • 2025年8月3日
  • 2025年8月3日

【Docker】 Container operation using Docker Compose

This article will introduce container operations using Docker Compose. What is Docker Compose? Docker Compose is a tool that launches multiple Docker containers simultaneously. From a practical standpoint, it is likely that multiple containers will be used together. With Docker Compose, you can define the launch of multiple containers in a YAML file and launch them all together with a single command. Docker Compose Practice Practice using Docker Compose. It should have been installed with Docker. Run Docker Compose and verify that the help menu appears. This time, we will build a simple web server with Nginx + MySQL. Prepare the necessary files. This time, prepare the following file configurations: The docker-compose.yml file defines the containers to be launched. Each container is defined in the service. In this case, the web (Nginx) and database (MySQL) containers are defined. Since it is assumed that the two containers can communicate with each […]