- Install Docker https://www.docker.com/get-started
./docker-compose up
http://localhost:8080
– WordPresshttp://localhost:8080/admin/
– WordPress admin (admin
/password
)http://localhost:8000
– PHPMyAdmin (root
/root
)
Run docker-compose
command in the folder with docker-compose.yml
only
docker-compose up
# Start containersdocker-compose up -d
# Start containers in detached mode (in background)docker-compose stop
# Stop containersdocker-compose down
# Stop and remove containersdocker-compose ps
# List containers ("process status")docker-compose rm
# Remove stopped containersdocker-compose build
# Build containersdocker-compose exec [CONTAINER] /bin/bash
# Access bash in [CONTAINER] container
Run docker
command from everywhere
docker ps
# List running containers ("process status")docker exec -it [CONTAINER] /bin/bash
# Access bash in [CONTAINER] containerdocker stop [CONTAINER]
# Stop running [CONTAINER]docker stop $(docker ps -a -q)
# Stop all running containersdocker container ls --all
# List all containers Docker registers in our systemdocker container rm [CONTAINER]
# Remove container [CONTAINER]docker images
# List all imagesdocker rmi [IMAGE]
# Remove [IMAGE]