https://github.com/gh640/docker-proxy-samples
🐳 Samples to try Docker proxy feature
https://github.com/gh640/docker-proxy-samples
docker docker-compose
Last synced: 2 months ago
JSON representation
🐳 Samples to try Docker proxy feature
- Host: GitHub
- URL: https://github.com/gh640/docker-proxy-samples
- Owner: gh640
- Created: 2022-10-31T06:39:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T06:39:27.000Z (over 3 years ago)
- Last Synced: 2025-07-03T14:08:53.647Z (about 1 year ago)
- Topics: docker, docker-compose
- Language: Dockerfile
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `docker-proxy-samples`
Samples to try Docker proxy feature.
## Prerequiresites
- Docker
- Docker Compose
## Usage
### 1. Build Docker images
```bash
docker compose build
```
### 2. Start `proxy` container
```bash
docker compose up proxy
```
### 3. Start `client` container and make requests
Open a new terminal and run the following command:
```bash
docker compose run --rm -it client python
```
```python
>>> import requests as r
>>> r.get('https://example.com')
```
You can see the proxy is used.