Code Monkey home page Code Monkey logo

docker-phper's Introduction

docker-phper

介绍

个人使用的docker开发环境,持续添加常用组件,镜像精简。

常用命令

运行所有:

docker-compose up -d

运行 NGINX 或 MySQL 或 PHP:

docker-compose up -d  nginx / mysql / php-fpm

进入 Workspace 容器

docker-compose exec workspace /bin/bash

退出容器, exit.

查看容器

docker-compose ps

查看容器IP地址等信息

docker inspect {容器id} | grep IPAddress

关闭所有容器

docker-compose stop

停止某个容器:

docker-compose stop {容器名称}

删除所有容器,包括网络、容器、共享卷

docker-compose down

建立/重建容器

docker-compose build

指定哪个容器重建(而不是重建所有的容器):

docker-compose build {container-name}

重建整个容器,可以需要使用 --no-cache 选项 (docker-compose build --no-cache {container-name}).

docker-phper's People

Contributors

majikang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.