my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
2.4 KiB

3 years ago
  1. # Docker-compose
  2. This plugin provides completion for [docker-compose](https://docs.docker.com/compose/) as well as some
  3. aliases for frequent docker-compose commands.
  4. To use it, add docker-compose to the plugins array of your zshrc file:
  5. ```zsh
  6. plugins=(... docker-compose)
  7. ```
  8. ## Aliases
  9. | Alias | Command | Description |
  10. |-----------|--------------------------------|------------------------------------------------------------------|
  11. | dco | `docker-compose` | Docker-compose main command |
  12. | dcb | `docker-compose build` | Build containers |
  13. | dce | `docker-compose exec` | Execute command inside a container |
  14. | dcps | `docker-compose ps` | List containers |
  15. | dcrestart | `docker-compose restart` | Restart container |
  16. | dcrm | `docker-compose rm` | Remove container |
  17. | dcr | `docker-compose run` | Run a command in container |
  18. | dcstop | `docker-compose stop` | Stop a container |
  19. | dcup | `docker-compose up` | Build, (re)create, start, and attach to containers for a service |
  20. | dcupb | `docker-compose up --build` | Same as `dcup`, but build images before starting containers |
  21. | dcupd | `docker-compose up -d` | Same as `dcup`, but starts as daemon |
  22. | dcdn | `docker-compose down` | Stop and remove containers |
  23. | dcl | `docker-compose logs` | Show logs of container |
  24. | dclf | `docker-compose logs -f` | Show logs and follow output |
  25. | dcpull | `docker-compose pull` | Pull image of a service |
  26. | dcstart | `docker-compose start` | Start a container |
  27. | dck | `docker-compose kill` | Kills containers |