Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 750 Bytes

DOCKER_TIPS.md

File metadata and controls

39 lines (27 loc) · 750 Bytes

Docker Tips

Typical Docker Commands

# Start all environments services
docker-compose up --build

# Restart a specific container
docker restart [service name]

# List all containers
docker ps -a

# List running containers
docker ps

# See used space
docker system df

# Remove un-used data
docker system prune

Passwords

  • MariaDB
    • username: mariadb_user
    • password: mariadb_pass

Running Xdebug with PhpStorm alongside Docker

From Docker versions 18.03 and above, Docker creates a special DNS name that resolves to the internal IP address used by the host.

  • Old logic (that has not updated to special DNS name) will need to point to the IP of 10.254.254.254.
sudo ifconfig lo0 alias 10.254.254.254