Skip to content

Commit

Permalink
--net=host
Browse files Browse the repository at this point in the history
  • Loading branch information
UNiXMIT committed Mar 1, 2024
1 parent 2f6e2c4 commit aa136ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions haproxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ podman run -d --name haproxy -v /home/support/haproxy:/usr/local/etc/haproxy:ro
```
**NOTE:** Your host's /home/support/haproxy directory should be populated with a file named haproxy.cfg

### --net=host
Allow the container to have direct access to the host's network.
Instead of specifying any any port mappings, set --net=host on the run command.

### Attach to container
```
podman exec -it haproxy bash
Expand Down
4 changes: 4 additions & 0 deletions nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ podman pull nginx:latest
podman run --name nginx -p 80:80 -p 443:443 -v /home/support/nginx:/config -e PUID=1000 -e PGID=1000 -e TZ=Europe/London -d lscr.io/linuxserver/nginx:latest
```

### --net=host
Allow the container to have direct access to the host's network.
Instead of specifying any any port mappings, set --net=host on the run command.

### Attach to container
```
podman exec -it nginx bash
Expand Down

0 comments on commit aa136ea

Please sign in to comment.