Skip to content

Commit

Permalink
doc(*):update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoweilong007 committed Dec 16, 2021
1 parent 2df8701 commit dc76e5c
Show file tree
Hide file tree
Showing 4 changed files with 443 additions and 391 deletions.
52 changes: 52 additions & 0 deletions blog/docker-compose教程.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,55 @@ services:
- `cammand`:指定容器启动后执行的命令

## 常用命令
- build Build or rebuild services

- convert Converts the compose file to platform's canonical format

- cp Copy files/folders between a service container and the local filesystem

- create Creates containers for a service.

- down Stop and remove containers, networks

- events Receive real time events from containers.

- exec Execute a command in a running container.

- images List images used by the created containers

- kill Force stop service containers.

- logs View output from containers

- ls List running compose projects

- pause Pause services

- port Print the public port for a port binding.

- ps List containers

- pull Pull service images

- push Push service images

- restart Restart containers

- rm Removes stopped service containers

- run Run a one-off command on a service.

- start Start services

- stop Stop services

- top Display the running processes

- unpause Unpause services

- up Create and start containers

- version Show the Docker Compose version information


>用法和docker命令一样
Loading

0 comments on commit dc76e5c

Please sign in to comment.