Skip to content

Commit

Permalink
add missing line to get pid_networkless
Browse files Browse the repository at this point in the history
  • Loading branch information
rimelek committed Feb 18, 2023
1 parent ae88528 commit a3c0657
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/advanced/kernel-namespaces-network.rst
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ localhost, you can access it from the web browser in the same network namespace.
.. code:: bash
docker run -d --name php-networkless --network none itsziget/phar-examples:1.0
pid_networkless=$(docker container inspect php --format '{{ .State.Pid }}')
sudo nsenter --net=/proc/$pid_networkless/ns/net curl localhost
Or sometimes you know that the frontend is safe to use, so you only want to test the backend.
Expand Down

0 comments on commit a3c0657

Please sign in to comment.