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
对于 "nginx-tomcat-svc-ingress.yaml" 和 "nginx-tomcat-deploy.yaml",同样使用 `kubectl apply` 命令进行部署,以启动 Tomcat 应用并设置其 Ingress 规则。 验证配置是否生效的方法有很多,例如,你可以使用 `...
kubernetes部署ingress-nginx,由于官方给的镜像拉取国内拉取不到,所以更换了阿里云镜像加速。直接apply即可。
里面包含: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 ...
kubernetes 中的 pod 中容器想要对外部用户提供服务就需要将 pod 服务暴露至外部,让用户可以访问,而 Service 的表现形式为 ip 地址和端口号(ClusterIP:port)&(NodePort)即工作在四层 TCP/IP 层只能够通过 ip +...
用控制器创建pod yaml文件示例
L300-2A-Configure and Deploy Service Delivery and Automation课程是针对Microsoft产品中数据中心和私有云管理技术的专业课程。该课程的目的是帮助技术管理人员了解并掌握如何通过服务交付和自动化提高IT服务的...
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
Scalable Cloud Ops with Fugue Declare, Deploy, and Automate the Cloud 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
4. **增量打包**:每次代码提交后,运行ideploy命令,工具会自动检测变更并进行增量打包。 5. **部署**:将生成的打包文件部署到服务器,ideploy通常也支持自动化部署。 **5. 应用场景** ideploy适用于敏捷开发...
Acronis Snap Deploy Management 是一款高效的企业级工具,专门用于快速、批量地部署Linux操作系统到多台设备上。它利用Acronis先进的磁盘映像技术,能够在保持原有系统完整性的基础上,创建一个包括操作系统、配置...
4. 部署 Ingress-nginx controller Ingress-nginx controller 是一种常用的 Ingress 控制器,用于管理 Ingress 资源。为了部署 Ingress-nginx controller,需要创建一个 deploy.yaml 文件。deploy.yaml 文件中需要...
Deploy -> Deploy Application 四、总结 本文详细介绍了 Nginx 的安装与配置,包括下载介质、编译部署介质、部署 Nginx 等过程。同时,也介绍了 Weblogic 集群配置的详细资料,包括集群架构、集群配置、部署应用...
How To Deploy Kamailio on Linux