The dockerhub mirrored published to the cloud access (Ali cloud) Ubuntu systems use docker container released a simple application

First registration purchase Ali cloud ubuntu system (because of their own to buy is ubuntu, linux other systems can also be friends ~)

Once configured domain name, and set up the server, add firewall rules, custom open ports (in the previous article, I mapped port 4000, I was in the clouds map is 5000, so open port 5000)

Open remote connection, according to the blog post tutorial configured docker in the cloud linux system: Ubuntu system uses docker container released a simple application

Log dockerhub: Docker the Login

Pull hub-side mirror: docker pull dockerhub username / warehouse name: name tag # such as the author himself is  docker pull 770958391 / get-started: part2

View mirror at what local docker: docker ImagesRF Royalty Free

Has been running the background image is mapped to port 5000: Docker RUN -d -p 5000: 80 F80     # herein generally do not write the whole, three is enough

Now, access your domain name + map address: the author is wangjs.club:5000 (click on might not open, right-recommended opens in a new window)

Get!

(Problems can leave a message ~)

Guess you like

Origin www.cnblogs.com/wjwjs/p/10991278.html