Portainer 2020(4)Deploy Nginx and Others
My Portainer is running fine, it use remote connect to 2375 ports to other machines.
Choose an Endpoint first —> Containers —> Add Container
Name: onenginx
Registry: DockerHub
Image: nginx:latest
Manual network port publishing:
Host: 8800 —> container: 80 TCP
Click —> Deploy the Container
Check Image
> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 6678c7c2e56c 2 weeks ago 127MB
Check Container
> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
13071a53b39b nginx:latest "nginx -g 'daemon of…" 29 seconds ago Up 27 seconds 0.0.0.0:8800->80/tcp onenginx
Visit the page
http://rancher-home:8800/
Just an UI tool to manage the Docker things for US.
Add my Customized Registry
Start my Registry on 5000
Start my Registry UI on 5001
Visit http://rancher-home:5001/ to view my images
On the Portainer UI Console
Registries —> Create Registry —>
Name: rancher-home-registry
Registry URL: rancher-home:5000
Click on —> Add registry
Tag a nginx and prepare in the customer registry
> docker tag nginx:latest rancher-home:5000/c-nginx:1
Push to our registry
> docker push rancher-home:5000/c-nginx:1
View that on the UI
http://rancher-home:5001/?page=1#!taglist/c-nginx
Go to the same steps to start a nginx on rancher-worker1
Name: twonginx
Registry: rancher-home-registry
Image: 192.168.56.110:5000 c-nginx:1
Manual network port publishing:
Host: 8800 —> Container: 80
Click —> Deploy the container
Remember to add our registry to all the machines
> sudo vi /etc/docker/daemon.json
It works pretty well. The shortage is that it can not scaling and across machines.
References:
https://blog.csdn.net/weixin_40165163/article/details/97308718
https://blog.csdn.net/iteye_10432/article/details/99161578
分享到:
相关推荐
How to configure content caching, ...How to deploy NGINX and NGINX Plus in AWS, Azure, and GCP; as well as in Docker containers. About monitoring and troubleshooting application performance with NGINX.
Learn how to configure caching, load balancing, security, cloud ...- Using Docker to deploy containers and microservices - Debugging and troubleshooting, performance tuning, and practical ops tips
netscreen firewall deploy model and maintain
portainer-deploy:一组bash脚本以提高版本号并构建到docker或将docker的堆栈部署到portainer
SSIS Package Deploy Configuration and Timing Execute
里面包含:deploy.yaml 和 ingress-nginx.tar两个文件 deploy.yaml 是k8s的配置文件 ingress-nginx.tar是k8s的nginx镜像 将两个文件放到任意文件夹下,在文件夹下依次运行命令: docker load -i ingress-nginx.tar ...
Docker Containers Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Docker is a containerization technology at the center of a new wave for building, packaging, and deploying applications. It has the potential to impact every aspect of computing, from the application ...
release it! design and deploy production ready software
Scalable Cloud Ops with Fugue Declare, Deploy, and Automate the Cloud 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Release It! - Design and Deploy Production-Ready Software 2nd,Release It! Design and Deploy Production-Ready Software
kubernetes部署ingress-nginx,由于官方给的镜像拉取国内拉取不到,所以更换了阿里云镜像加速。直接apply即可。
Scalable Cloud Ops with Fugue Declare, Deploy, and Automate the Cloud 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Scalable Cloud Ops with Fugue Declare, Deploy, and Automate the Cloud 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 ...
how to identify,develop,deploy,and connect talents when companies transform to global integrated enterprise the case of advantech
How To Deploy Kamailio on Linux
Bulletproof SSL and TLS is a complete guide to using SSL and TLS encryption to deploy secure servers and web applications. Written by Ivan Ristic, the author of the popular SSL Labs web site, this ...
Pragmatic Bookshelf - Release It! Design and Deploy Production Ready Software
三处image需要修改(若官方deplo.yaml中的image可以拉取,则不需要改image),另两个文件是测试ingress规则是否生效的yaml。
Michael_Nygard-Design_and_Deploy_Production-Ready_Software-EN.pdf