Pulling the nginx:mainline-alpine Docker image The Docker Hub is an open-source repository of Docker Images available to Docker users. Run the docker pull command to retrieve, or pull, the latest nginx image from the NGINX Docker Hub repository using the mainlin-alpine branch. First, open a terminal session where you will run all of the necessary Docker commands.Ģ. This tutorial will use a minimal Linux distribution called Alpine Linux running the latest NGINX version available, which is 1.21.1 in this tutorial.ġ. Let’s get started by first creating a Linux Docker image with NGINX already installed.
#Docker network localhost windows 10
Windows 10 – The tutorial uses Windows to run Docker on but the same general steps can also be applied to Linux or macOS.Docker Desktop – This tutorial uses version 3.5.1.To follow along with this tutorial, be sure you have the following:
22 MySQL Community Server - GPL Copyright ( c ) 2000, 2020, Oracle and / or its affiliates.
Your MySQL connection id is 8 Server version : 8.
#Docker network localhost password
# docker exec - it 0 bc13d638463 bash root 0 bc13d638463 :/ # mysql - u root - p Enter password : Welcome to the MySQL monitor. 5 "/docker-entrypoin." 14 seconds ago Up 14 seconds 80/tcp gracious_jennings docker run -d -P -e MYSQL_ROOT_PASSWORD=123456 mysql:latest.docker run -d -e NGINX_VERSION= nginx:1.19.5.5 "/docker-entrypoin." 30 minutes ago Exited (0) 19 minutes ago optimistic_brown 5 "/docker-entrypoin." 22 minutes ago Exited (0) 6 minutes ago sharp_wescoffġ95 b13d6edb2 nginx : 1. # docker stop elated_williams - 停止容器 elated_williams # docker ps - a - 查看全部容器, 没有03295d361dcc, 已经被删除了 CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 99 babe638e0f nginx : 1. 5 "/docker-entrypoin." 5 minutes ago Up 5 minutes 0.0.0.0:32769->80/tcp quizzical_minsky