Docker engine

Docker(Docker Engine)
• Define

1. Docker provides a way to run applications securely isolated in a container, packaged with all its dependencies and libraries.
2. Containers are a way to package software in a format that can run isolated on a shared operating system. Unlike VMs, containers do not bundle a full operating system - only libraries and settings required to make the software work are needed

• Structure
这里写图片描述
the client-server application made up of the Docker daemon, a REST API that specifies interfaces for interacting with the daemon,and a command line interface (CLI) client that talks to the daemon (through the REST API wrapper).

• CLI
https://docs.docker.com/engine/reference/run/
○ Sample

    § docker --help
    § docker build -t songgs/apache-php-mysql:20m .
    § docker run -d -p 8080:80 -u 0:0 --name wplocal -v /var/LWASFiles/Sites/new2/home:/home -e PORT="80"    appsvc/apps:wordpress
    § docker exec -it containerid bash
    § docker push songgs/apache-php-mysql:20m
    § docker rmi –f $(docker images -q -f dangling=true) 
    § docker rm -f $(docker ps -aq -f status=exited)

• Learn : 中文版

Docker Image

  1. Apache-PHP-MySQL
    PHP installed as apache module: http://php.net/manual/en/security.apache.php
  2. Nginx-PHP
  3. Python
    nginx <-> /tmp/uwsgi.sock <-> uWSGI <-> Python app <-> Psycopg2 <-> remote PostgreSQL database
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值