Docker+.net Core Stuff-1. Preparation work

Source: Internet
Author: User
Tags dotnet

1. Download CentOS

Address: https://www.centos.org/download/

I'm using the DVD ISO, and I'm doing this to make it easy to use the CentOS Firefox on the next Docker pits to determine if the app in Docker is going to be able to access it properly.

Of course, if using the Curl command can also be tested, it depends on your preferences. I installed a CentOS version of 7, different versions may be slightly different, I will try to indicate in the process.

After the download is complete, you need to configure the system:

  1) Turn off SELinux

SELinux is a very pit of things, it will make a lot of network connection related services are not normal use, so it is a key step to turn it off.

Check the status of SELinux first:

Getenforce

If the display status is enforcing, which means that SELinux is turned on, use the following command to close it

0

Executing the above command will allow SELinux to shut down temporarily (no need to restart the system), if you want to completely shut it down:

Vim/etc/selinux/config

Set SELinux to disabled and restart the system if you want to take effect after the modification. For the use of VIM, please own Baidu.

  2) Update Yum

Yum Update//This step is used to update Yum's Mirror list. This step is very slow, can not stand the use of NetEase's Mirror station.
2. Install the. NET core environment in the host
Yum Install  -ssl-o dotnet. tar. GZ https:////go.microsoft.com/fwlink/?linkid=848821 This address will vary with the version of. NET Core, Please go to the address below to view the specific address.  mkdirsudotar zxf dotnet. tar. gz-c/opt/dotnetLn -s/opt/dotnet/dotnet/usr/local/bin

For details, see: Https://www.microsoft.com/net/core#linuxcentos

Note that the last ln command in/usr/local/bin is not necessarily the directory, and the min version of Centos7 is/usr/bin.

Dotnet--version

If you return:

Indicates that the installation was successful.

3. Install the Docker environment in the host
Yum Install Docker
Docker--version

If you return:

Indicates that the Docker installation was successful.

4. Create a working directory
cd/home/[your user name]mkdir Docker_demo

At this point, the construction of the entire environment is basically complete. The following article describes some of the basic concepts in Docker and how to create a mirror of your own based on the Docker image provided by Microsoft.

Docker+.net Core-2. Create a Docker image

Docker+.net Core Stuff-1. Preparation work

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.