Purpose of using docker technology
Using docker technology we can create the analysis process of the tools we build to be used locally. And this is system independent and can be run on many platforms. Whether it's a physical machine, a virtual machine, a public cloud, a private cloud, or a laptop, the results are all consistent.
How to install docker on different systems
1.# Ubuntu Docker Installation curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun 2.# Debian Docker Installation curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun 3.# CentOS Docker Installation curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun 4.# MacOS Docker Installation # For macOS, we can use Homebrew to install Docker. # Homebrew's Cask already supports Docker for Mac, so it is easy to install it using Homebrew Cask. $ brew install --cask --appdir=/Applications docker ==> Creating Caskroom at /usr/local/Caskroom ==> We'll set permissions properly so we won't need sudo in the future Password: # Enter macOS password ==> Satisfying dependencies ==> Downloading https://download.docker.com/mac/stable/21090/Docker.dmg ######################################################################## 100.0% ==> Verifying checksum for Cask docker ==> Installing Cask docker ==> Moving App 'Docker.app' to '/Applications/Docker.app'. 🍺 docker was successfully installed! 5.# Windows Docker Installation # Install Hyper-V # Turn on Hyper-V # Install Docker Desktop for Windows # Click Get started with Docker Desktop and download the version for Windows, if you are not already logged in, you will be asked to register for a login at # Run the installation file # Double-click the downloaded Docker for Windows Installer installation file, go all the way to Next, and click Finish to complete the installation. # When the installation is complete, Docker will start automatically. A small whale icon will appear on the notification bar, which indicates that Docker is running. # Three icons will also appear on the desktop, as shown in the following image. # We can execute docker version at the command line to see the version number and docker run hello-world to load a test image for testing. # If it doesn't start, you can start it by searching for Docker in Windows at # Once installed, you can open PowerShell and run the following command to check if it ran successfully. docker run hello-world # After a successful run, the following message should appear.
How to use docker's LGRPv2
1.# Search 1457634627/fgbp mirror docker search 1457634627/fgbp 2.# Get 1457634627/fgbp mirrors docker pull 1457634627/fgbp 3.# View Installed Mirrors docker images 1457634627/fgbp 4.# View all your containers docker ps -a 1457634627/fgbp 5.# Run docker 1457634627/fgbp mirror docker run 1457634627/fgbp python3.6 manage.py runserver 6.# Go to the container again docker exec -it 1457634627/fgbp python3.6 manage.py runserver 7.# Stop the 1457634627/fgbp container docker stop 1457634627/fgbp or docker container kill 1457634627/fgbp
LGRPv2 Docker link https://hub.docker.com/r/1457634627/fgbp
More information about docker can be found in https://www.docker.com/ or in Document.
Six advantages of docker