Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bartko-s/docker-examples


https://github.com/bartko-s/docker-examples

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# Docker Examples

Build
```
docker-compose build
```

Run
```
docker-compose up
```

Stop
```
docker-compose down
```

Where is docker volumes located
```
/var/lib/docker/volumes/
```

Connect to the running container with shell
```
docker exec -it "container id" bash

// or

docker-compose exec "service-name" bash

// or run as specific user

docker-compose exec --user "user" "service-name" bash
```