1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-08-15 21:44:51 +02:00

Two changes : Correction on Fish cheatsheet & version update on Docker compose (#2115)

* fixed conditional equal operator as per the official documentation https://fishshell.com/docs/current/cmds/test.html

* updated docker compose cheatsheet, added good to remember functionalities and added V2 mention

---------

Co-authored-by: yassin <yassin.bousaadi@sword-group.com>
This commit is contained in:
BSD-Yassin
2024-03-15 14:25:32 +01:00
committed by GitHub
parent 4f18d6a46b
commit 46907176f9
3 changed files with 42 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ category: Devops
layout: 2017/sheet layout: 2017/sheet
prism_languages: [yaml] prism_languages: [yaml]
weight: -1 weight: -1
updated: 2020-01-01 updated: 2024-04-03
--- ---
### Basic example ### Basic example
@@ -27,22 +27,54 @@ services:
image: redis image: redis
``` ```
### Version 1 to 2
Docker compose is now integrated into the official Docker installation. The functionality only improved over that change, and the simple syntax change is : V1 : `docker-compose ARG` to V2 `docker compose ARG`
More on that here : [Docker Compose](https://docs.docker.com/compose/) [Migrate to V2](https://docs.docker.com/compose/migrate/)
### Commands ### Commands
```sh ```sh
docker-compose start docker compose version
docker-compose stop docker compose config
``` ```
```sh ```sh
docker-compose pause docker compose start
docker-compose unpause docker compose stop
docker compose restart
docker compose run
``` ```
```sh ```sh
docker-compose ps docker compose create
docker-compose up docker compose attach
docker-compose down docker compose pause
docker compose unpause
```
```sh
docker compose wait
docker compose up
docker compose down
```
```sh
docker compose ps
docker compose top
docker compose events
docker compose logs
```
```sh
docker compose images
docker compose build
docker compose push
docker compose cp
docker compose exec
``` ```
## Reference ## Reference

View File

@@ -1,4 +1,4 @@
version: '3' version: '3.8'
services: services:
web: web:
build: . build: .

View File

@@ -177,7 +177,7 @@ end
| String operator | Meaning | | String operator | Meaning |
| --- | --- | | --- | --- |
| `==` | [Eq]ual | | `=` | [Eq]ual |
| `!=` | [N]ot [E]qual | | `!=` | [N]ot [E]qual |
#### Files #### Files