Docker container running golang http.Client getting error `certificate signed by unknown authority`

前端 未结 2 1644
孤街浪徒
孤街浪徒 2020-12-15 19:49

I created a docker container for talking to the google api using GoLang. I started off using a SCRATCH container and am getting the error certificate signed by unknown

2条回答
  •  旧时难觅i
    2020-12-15 20:28

    You can use the self sign certificate specially for ubuntu. Before you begin, you should have a non-root user configured with sudo privileges. You can learn how to set up such a user account by following our initial server setup for Ubuntu 16.04.

提交回复
热议问题