Crafting Web Experiences
//
Method 1: Method 2: Method 3: Method 4: Method 5:
If you use WP-CLI as a separate container as usual, use this command to do a search replace without going into the container: With less options:
Redis Command: In a Docker Container:
When you first install Docker in Ubuntu, you might get some permission error messages. To fix that, I use the commands below. Error Message:Got permission denied while trying to connect to the Docker daemon socket at …. Initial Fix: .docker folder permission warning fix
uploads.ini: docker-compose.yml: or Dockerfile:
Need to find what’s eating your storage? Use these two commands: 1. Check Container Sizes Shows the writable layer size vs. the total image size for each container. 2. Overall Storage Summary Shows a summary of images, containers, and volumes. Need more detail? Add the verbose flag to see exactly which items are taking up…
docker-compose.yml: Dockerfile: NGINX default.conf:
Stop all containers: One by One Prune: Remove all including Build Cache: Reference: https://docs.docker.com/config/pruning/#prune-everything
The default running container listing command: List all containers either running and stopped: Choose specific information for the table that will be listed. I only wanted to list container names and their statuses: And finally, filter them by container names. I’m filtering the containers which contain “_wp” word: Reference: https://docs.docker.com/engine/reference/commandline/container_ls/
If you’re using Docker Composer in your project: Or, if you want to get into any kind of container: According to your system needs, you might need to add “-it” flag after “exec” parameter. Reference URLs:1. https://docs.docker.com/engine/reference/commandline/compose_exec/2. https://docs.docker.com/engine/reference/commandline/exec/
Built-in method: SCA Tool:Trivy – https://trivy.dev