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…
Portainer troubleshooting
The Portainer server restarts every 5 minutes before the admin account is created When the Portainer server starts, waits 5 minutes for a user to create the admin account. If no account created in the first 5 minutes, the server stops with error code 1,…
Chef Test Kitchen converge pauses with Transferring files to <...>
The first step of the Chef Test Kitchen converge operation is to transfer the cookbooks to the instance. If any of the cookbooks contain large files, the operation can take minutes while the terminal displays the message Transferring files to <…
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…
Splunk troubleshooting
Universal Forwarder SSH into the server running the Universal Forwarder To verify if the forwarding is configured
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,…
Install and configure Visual Studio Code
Install Visual Studio Code See https://code.visualstudio.com/docs/setup/mac On Windows Select all four checkboxes for maximum integration On macOS Move Visual Studio Code to the Applications folder The official instructions above start Visual Studio Code…
You must specify a region. You can also configure your region by running “aws configure”.
When we execute an AWS CLI command, we need to supply the AWS Region. If it is not specified, we get the error message: You must specify a region. You can also configure your region by running “aws configure”. We can add the region with the…
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)