Home  >  Q&A  >  body text

docker在正式线上环境的使用一般是怎样的

跟风试了下,懂的怎样下镜像然后运行,但是实际的投入使用没什么经验,想知道一般大家都是怎么投入到实际生产环境的,或者说生产环境docker能用什么?

例如自己要搭个lamp环境,我是直接先用centos+apache+php自己做好一个完整的镜像,然后在新机子运行?还是在新机子运行各自的centos、apache、php的镜像?

習慣沉默習慣沉默2704 days ago760

reply all(3)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-04-27 09:05:13

    1. Run respective images
    2. Use docker-machine to dockerize your host
    3. Use docker-compose to manage multiple containers (example)
    4. Collect docker logs
    5. Security aspects
    6. Deploy Gitlab , Docker Registry automatically builds app images and deploys

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-04-27 09:05:13

    1. Make apache and php images respectively
    2. Install docker and compose on the new machine
    3. Use compose management to start apache and php images
    You can refer to https://www.centos.bz/2017/02.. .

    reply
    0
  • PHP中文网

    PHP中文网2017-04-27 09:05:13

    In an online environment, we generally use container orchestration and scheduling tools, such as rancher/kubernetes and other tools to schedule containers

    reply
    0
  • Cancelreply