Docker Stack commands
List the Docker Stacks NAME SERVICES ORCHESTRATORsyslog-ng_splunk 3 Swarm List all Docker services List the services of a stack List the services of a stack with the full error message, do not truncate the output
Troubleshoot stopped containers
The stopped Docker containers are still available for troubleshooting. You can create an image of them and run them as new containers to inspect the log files and execute commands in them. View the standard output of the failed container Run a failing…
Docker Swarm overview
Docker Swarm Hierarchy image in the registry container task ( container and the command to run in it ) service ( one or multiple instances of the same task, like multiple copies of the same web API ) stack ( one or multiple services that belong together,…
Docker commands
Display the Software Bill Of Materials ( the content of the image in table format ) Example: docker sbom nginx To delete all containers, execute docker rm -f $(docker ps -a -q) To delete all images, execute docker rmi -f $(docker images -q)
x509: certificate signed by unknown authority
I have built a Docker container with a Go application that used the Go AWS SDK. When my program tried to access an S3 bucket I got the error message RequestError: send request failedcaused by: Get https://MY_BUCKET_NAME.s3.amazonaws.com: x509:…
Docker for Windows cannot start: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”
To start Docker on Windows, Hyper-V and the Hypervisor has to be enabled on Windows. Start a PowerShell window as administrator Enable Hyper-V dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All Enable the Hypervisor bcdedit /set hypervisorlaunchtype…
Docker commands to run popular images
Maven Navigate to the Maven project directory on your workstation and launch the Maven container. To run a Maven project by using the Maven Docker image directly, passing a Maven command to docker run. docker run -it --rm --name my-maven-project -v…
Connect to a database on the host in a Docker container from a virtual machine
Docker is an emerging technology to launch applications without installation. The same host can run multiple Docker containers of any type, so one physical or virtual server can serve as a complete mini cloud environment. Most of the time Linux is used…