-->

Monday, January 16, 2023

[Solved] URL: ["https://vagrantcloud.com/ubuntu/bionic64"] Error: SSL certificate problem: self signed certificate in certificate chain

 ISSUE:-

While downloading the ubuntu/bionic64 using the Vagrantfile got the following error


Error:-

 URL: ["https://vagrantcloud.com/ubuntu/bionic64"]  
 Error: SSL certificate problem: self signed certificate in certificate chain

Cause:-

It is showing the SSL Certificate Issue

[Solved] The version of powershell currently installed on this host is less than the required minimum version.

 Issue:-

Vagrant failed to initiate at early stage with error that the powershell is outdated.


Error:-

 Vagrant failed to initialize at a very early stage:  
 The version of powershell currently installed on this host is less than  
 the required minimum version. Please upgrade the installed version of  
 powershell to the minimum required version and run the command again.  
  Installed version: N/A  
  Minimum required version: 3  

Cause:-

Because of the older version of the powershell vagrant failed.

Monday, January 9, 2023

[Solved] From inside of a Docker container, how do I connect to the localhost of the machine?

To connect to the localhost of the machine from inside a Docker container, you can use the host.docker.internal hostname. This special DNS name is resolved to the internal IP address used by the host.

For example, if you want to connect to a service running on the host machine's localhost on port 8080, you can use the following command from inside the container: 

curl http://host.docker.internal:8080

Note that this method of connecting to the host's localhost will only work if you are using Docker for Mac or Docker for Windows. If you are using Docker on a different operating system, you will need to use the IP address of the host machine instead.

You can also use the --network host flag when starting the container to allow it to connect directly to the host's network interfaces. For example:

 docker run --network host <image-name>  

This can be useful if you need to connect to a service running on the host that is not exposed on localhost, or if you need to bind to a specific IP address or port on the host.

[Solved] Database is uninitialized and password option is not specified

 

Issue:- 

When  launching a mysql container from an image from mysql:5.7 image the container stops with error message saying to put the environment variable for the mysql root password.

Error:-