Raspberry Pi: Docker – Install Docker on Raspberry Pi

To build and run Docker containers on Raspberry Pi it is required to install Docker itself.

To install the latest version of Docker on Raspberry Pi and to be able to upgrade it easily in future – it is recommended to install Docker from the official repository.

In this guide i will show how to install free Docker CE (Community Edition) on Raspberry Pi (Raspbian) from the stable official repository, how to verify that it has installed correctly and will show the common post-installation steps to perform. (more…)

AWS CLI: SSL Validation Failed – [SOLVED]

Once you run some command in the AWS CLI, for example aws s3 ls, you may get the error as follows:

SSL validation failed for <endpoint_url> [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

To work around the issue you can add the --no-verify-ssl option to the AWS CLI:

$ aws s3 ls --no-verify-ssl

But this is not secure and will cause the following warning:

InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

Cool Tip: How to get an SSL certificate from a server (site’s URL)! Read more →

AWS CLI: SSL Validation Failed

To use the AWS CLI with HTTPS certificate verification, it is required to specify the path to a custom certificate bundle.

This can be done by setting the AWS_CA_BUNDLE environment variable.

Linux:
$ export AWS_CA_BUNDLE="/data/ca-certs/ca-bundle.pem"

Windows:
PS C:\> setx AWS_CA_BUNDLE C:\data\ca-certs\ca-bundle.pem

Or by using the --ca-bundle command-line parameter:

$ aws s3 ls --ca-bundle "/data/ca-certs/ca-bundle.pem"

Or by setting the ca_bundle in the AWC CLI configuration file:

$ nano ~/aws/.config
$ cat ~/aws/.config
[default]
ca_bundle = /data/ca-certs/ca-bundle.pem

AWS CLI: S3 `ls` – List Buckets & Objects (Contents)

Amazon Simple Storage Service (S3) stores data as objects within resources called buckets.

Each Amazon S3 object consist of a key (file name), data and metadata that describes this object.

Amazon S3 lets you store and retrieve data via API over HTTPS using the AWS command-line interface (CLI).

In this note i will show how to list Amazon S3 buckets and objects from the AWS CLI using the aws s3 ls command. (more…)

Raspberry Pi: DNS Server Settings

The DNS servers in Raspberry Pi are listed in /etc/resolv.conf file.

If you want to change the Raspberry Pi’s DNS server settings you shouldn’t update this file manually, because all changes will be overwritten after reboot by data that your local DHCP server provides.

In this note i will show how to change DNS servers in Raspberry Pi and make the settings permanent. (more…)