LoginSignup
1
2

More than 3 years have passed since last update.

docker コマンドだけで起動する proxy サーバ

Last updated at Posted at 2020-02-28

proxy という npm パッケージを node コンテナで実行するだけでお手軽に proxy サーバが起動できる。

コマンド

$ docker run --rm -p 8888:3128 node npx proxy 
  • proxy コマンドはデフォルトで 3128 ポートをListenするのでそれをホスト側の 8888 にポートマッピングしている

ブラウザの設定(Firefoxの場合)

Image from Gyazo

  • Manual Proxy setting でホスト名を localhost、ポート番号を先のコマンドでポートマッピングしたportに設定

参考

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2