As I have already seen some posts from you here on the forum, I get the impression you are a little bit careless. It seems you are copy-pasting a lot of config pieces from the Internet (Stackoverflow?), without actually understanding and checking.
Please be aware that node 14 is end of life since last year. Please make sure you always run latest versions to avoid running any containers with open security issues. You don’t want any malicious actor taking over your server.
npm does not seem to support socks proxy, see issue. There are some workarounds discussed.
Alternatively you might try to configure Docker to use a proxy, see docs.
Hello,
Thank you so much for your reply.
No, I didn’t copy this Dockerfile from somewhere. When you create a project on the GitLab server from the templates, this file is generated.
Socksify tool? Can Proxychains be used?
I have added the following lines to the /lib/systemd/system/docker.service file for pulling images:
As @bluepuma77 said, Docker supports the use of proxies for building images (see docs).
What does not appear in the documentation, is that it is possible to clarify the proxy protocol.
For example: in the documentation it shows the following: