Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.03 KB

DOCKER-QUICKSTART.md

File metadata and controls

65 lines (45 loc) · 1.03 KB

<-- Back to main section

Docker Quickstart

Docker short introduction

Create and start containers (eg. first start):

# copy favorite docker-compose.*.yml to docker-compose.yml
cp docker-compose.development.yml docker-compose.yml
docker-compose up -d

Stop containers

docker-compose stop

Start containers (only stopped containers)

docker-compose start

Build (but not create and start) containers

docker-compose build --no-cache

Delete container content

docker-compose rm --force

Recreate containers (if there is any issue or just to start from a clean build)

 docker-compose stop
 docker-compose rm --force
 docker-compose build --no-cache
 docker-compose up -d

Logs (eg. for debugging)

# show all logs
docker-compose logs

# ... or only php and webserver
docker-compose logs app

# ... or only app and mysql
docker-compose logs app mysql

CLI script (defined in etc/environment*.yml)

docker-compose run --rm app cli help