Let's install Docker on Windows 10 and create a verification environment for CentOS 8!

Why did you decide to use Docker?

I wanted to create a verification environment for CentOS8 on my home server ... As expected, "Suddenly execute in production! ] Is a little ... (´ ・ ω ・ `)

I had a lot of trouble installing Redmine, and I really thought, "I want a verification machine ...".

First install

Download the installer from the Docker Desktop page! (Stable = stable version) image.png Start the installer! If I didn't understand it well, Baccha said that I should put everything in for the time being. image.png The version of Docker Desktop to be installed this time is 2.5.0.1 (49550). All you have to do is drink tea and wait! Please note that restart in the figure below is a restart of the OS! image.png I'm missing something necessary to run Docker, so install it and restart! I will say. image.png Download the kernel update package from the linked Windows page. image.png Launch the kernel update package! image.png Installation is complete without any problems! image.png Then restart Docker image.png Installation is complete when the tutorial screen appears! image.png

Skip the tutorial

I tried the tutorial for the time being, but for those who are new to Docker, it was just a push of a button.

Get Docker ID

I will get a Docker ID so that I can get a Docker image (≒ environment that other people have already created). image.png Acquire an account according to the flow of the linked site.

Let's put CentOS 8 in Docker and check the version

Get the CentOS 8 image from Docker Hub. The following command in PowerShell.

docker pull centos:centos8

docker imagesIf you type the command, you can see the list of acquired images. You have CentOS8. image.png

Create a container with the following command, start it, and connect the bash shell at once. (This time I tried to make a container named "centos8_desu")

docker run -it --name="centos8_desu" centos:centos8 /bin/bash

Then, type CentOS version check command to check the version! Yeah, I got it! image.png It was just right because it was the same version as my home server.

Man who does not want to remember the command!

There seems to be a Docker command. (Commands such as "start or stop container" and "login to container")

('A`) ... GUI is fine ... image.png image.png You can go as far as opening the terminal with a mouse click. image.png I have to set up the verification environment as soon as possible, so I decided to remember the Docker command each time I needed it.

Reference site

https://qiita.com/gahoh/items/7b21377b5c9e3ffddf4a

Serpentine

  1. Mirror the image like "Cut back image" and "Trial image".
  2. If you stumble on the "trial image", delete the image, duplicate the "revert image" and try again.

I wonder if I can do something like that?

It would be convenient if you could take a snapshot of the environment quickly. Can you do that?

version

Windows10 Pro version 1909 OS build 18363.1198

Recommended Posts

Let's install Docker on Windows 10 and create a verification environment for CentOS 8!
Let's create a gcloud development environment on a centos8 container
Install Java 9 on windows 10 and CentOS 7
Install Ubuntu 20.04 in virtual box on windows10 and build a development environment using docker
Install Docker and create Java runtime environment
Create a development environment for Ruby 3.0.0 and Rails 6.1.0 on Ubuntu 20.04.1 LTS
Create a Docker Image for redoc-cli and register it on Docker Hub
[Memo] Create a CentOS 8 environment easily with Docker
[Docker] How to create a virtual environment for Rails and Nuxt.js apps
Create a docker environment for Oracle 11g XE
[First environment construction] I tried to create a Rails 6 + MySQL 8.0 + Docker environment on Windows 10.
Install Docker on Windows 10 PRO
Create an environment for Tomcat and Postgres on a Chromebook without using developer mode
Beginners install docker for mac and prepare php7.0 operating environment
How to install GNOME as a desktop environment on CentOS 7
Create a Vue3 environment with Docker!
Environment construction for OSS-DB Silver # 2_Preparation 1-Create a user account to operate PostgreSQL on CentOS7
Create SolrCloud verification environment with Docker
How to create an environment that uses Docker (WSL2) and Vagrant (VirtualBox) together on Windows
Install Docker and docker-compose on Raspberry Pi 4, Linux (Debian) and Windows 10, respectively
Steps to install samba on CentOS 8 and connect from Windows 10 Explorer
[Java] Let's create a mod for Minecraft 1.16.1 [Add and generate trees]
Building a haskell environment with Docker + VS Code on Windows 10 Home
[Java] Let's create a mod for Minecraft 1.14.4 [9. Add and generate trees]
Install Rails in the development environment and create a new application
Creating a dual boot environment for Ubuntu Server 20.04.1 LTS and Windows 10
[Java] Let's create a mod for Minecraft 1.14.4 [8. Add and generate ore]
Install docker and docker-compose on Alpine Linux
Create a MySQL environment with Docker from 0-> 1
Introducing Docker Desktop for Windows on WSL2
Let's create a Java development environment (updating)
How to build a Ruby on Rails environment using Docker (for Docker beginners)
Building a development environment for Flutter on Win10 --- Flutter SDK Install (2020 preservation version)
Create a java web application development environment with docker for mac part2
Build a web application development environment that uses Java, MySQL, and Redis with Docker CE for Windows
Build a development environment for Docker + Rails6 + Postgresql
Create a Privoxy + Tor environment instantly using Docker
[Windows] [IntelliJ] [Java] [Tomcat] Create a Tomcat9 environment with IntelliJ
Building an environment for WordPress, MySQL and phpMyAdmin with Docker Compose on EC2
Just install Laravel8 on docker in PHP8 environment
Install Docker on Raspberry Pi 4 and Raspberry Pi OS 64bit
Building a Ruby environment for classes on Mac
Create a Docker container for your development web server in Ansible on MacOS
[Java] Let's create a mod for Minecraft 1.14.4 [Introduction]
[Java] Let's create a mod for Minecraft 1.16.1 [Introduction]
Prepare a scraping environment with Docker and Java
Build a development environment to create Ruby on Jets + React apps with Docker
A reminder of Docker and development environment construction
[Java] Let's create a mod for Minecraft 1.14.4 [99. Mod output]
Build a development environment for Docker, java, vscode
[Introduction to Docker] Create a Docker image for machine learning and use Jupyter notebook
Operate Docker Desktop for Windows on Linux (WSL)
Create a Spring Boot development environment with docker
Create a Java (Gradle) project with VS Code and develop it on a Docker container
A memo when building a Rails 5.2 development environment using Docker Desktop + WSL2 on Windows 10 Home
How to quit Docker for Mac and build a Docker development environment with Ubuntu + Vagrant
Create a Java (Maven) project with VS Code and develop it on a Docker container
Place "Create a to-do list using Rails API mode and React Hooks" on docker
[Java] Let's create a mod for Minecraft 1.14.4 [0. Basic file]
Create a Java development environment using jenv on Mac
[Java] Let's create a mod for Minecraft 1.14.4 [4. Add tools]