Skip to content

Commit

Permalink
Two changes : Correction on Fish cheatsheet & version update on Docke…
Browse files Browse the repository at this point in the history
…r compose (rstacruz#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>
  • Loading branch information
BSD-Yassin and ybousaadi authored Mar 15, 2024
1 parent 4f18d6a commit 4690717
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 10 deletions.
48 changes: 40 additions & 8 deletions docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ category: Devops
layout: 2017/sheet
prism_languages: [yaml]
weight: -1
updated: 2020-01-01
updated: 2024-04-03
---

### Basic example
Expand All @@ -27,22 +27,54 @@ services:
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


```sh
docker compose version
docker compose config
```

```sh
docker-compose start
docker-compose stop
docker compose start
docker compose stop
docker compose restart
docker compose run
```

```sh
docker-compose pause
docker-compose unpause
docker compose create
docker compose attach
docker compose pause
docker compose unpause
```

```sh
docker-compose ps
docker-compose up
docker-compose down
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
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3'
version: '3.8'
services:
web:
build: .
Expand Down
2 changes: 1 addition & 1 deletion fish-shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ end

| String operator | Meaning |
| --- | --- |
| `==` | [Eq]ual |
| `=` | [Eq]ual |
| `!=` | [N]ot [E]qual |

#### Files
Expand Down

0 comments on commit 4690717

Please sign in to comment.