Connect the Portainer Server to an existing Portainer Agent

With Portainer we can monitor multiple Docker Swarms from one Portainer Server. To connect an existing Portainer server to an agent Configure the Agent For security reasons, by default, the Portainer Agent only accepts connection from the first Portainer Server it encounters. To enable the Portainer Agent to connect to multiple Portainer Servers, add the […]

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 x509: certificate signed by unknown authority To solve the problem I had to add the following line to […]

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 auto Restart the computer

Docker commands to run 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 “$(pwd)”:/usr/src/mymaven -w /usr/src/mymaven maven:3.3-jdk-8 mvn clean install To launch the Maven Docker container and open […]