TAG

docker

  • January 3, 2021
  • January 3, 2021

Docker: Check the Privacy Configuration if you use Docker on macOS Catalina 10.15

The Docker can mount the folder in host OS to share with container. This article says check points if this function doesn’t work fine. The running environment of this article is macOS Catalina 10.15. When the host OS is macOS, the privacy settings also needed to be checked. Situation I have been using the web server which is running on the docker container to develop. The content files are in the folder which is shared with the container, because I want to edit them quickly. The configuration file of the Docker Composer is following: version: "3" services: nginx: build: . […]

  • December 7, 2020
  • December 26, 2020

How to configure the Nginx to support the HTTP POST method

How to configure the Nginx to support the HTTP POST method The docker is more useful to test and debug the code to communicate with the Web server rather than the real web server. The following post says that how to run the web server container with the docker. However, the docker can’t handle the HTTP method with the default configuration. This post explains that the Nginx in the container returns the contents of the file at URL same as GET method. Error Response The Nginx with the default configuration returns the response below when the client program connects with […]

  • December 7, 2020
  • December 26, 2020

The Docker is useful to test and to debug the code to connect with HTTP/HTTPS

If you implement the code to communicate with HTTP or HTTPS, you may want to test it with fixed response. The docker is useful to do it. It can create and run the container which contains the Nginx, the web server. You can test your application with this container. How to create the container Create the docker image To create the docker image, create the file with name ‘Dockerfile’ and write below. FROM nginx:1.17 Create the Composer define file Create the docker-compose.yml file and write code below. version: "3" services: nginx: build: . ports: - 8080:80 volumes: - ./content_home:/usr/share/nginx/html Create […]

>Programming Tips From Software Engineer

Programming Tips From Software Engineer

Technical News, Documents and Tips.

CTR IMG