From 9caba4d4778b722460b2a0da14d73fd97b3d5c58 Mon Sep 17 00:00:00 2001 From: narze's bot Date: Tue, 8 Oct 2024 03:30:06 +0000 Subject: [PATCH] Changes: "src/content/second-brain/Lightweight --- .../Lightweight Docker image for cURL.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/content/second-brain/Lightweight Docker image for cURL.md diff --git a/src/content/second-brain/Lightweight Docker image for cURL.md b/src/content/second-brain/Lightweight Docker image for cURL.md new file mode 100644 index 0000000..e70e6d2 --- /dev/null +++ b/src/content/second-brain/Lightweight Docker image for cURL.md @@ -0,0 +1,17 @@ +--- +title: Lightweight Docker image for cURL +date: 2024-10-07 +slug: lightweight-docker-image-for-curl +publish: true +filepath: src/content/second-brain/Lightweight Docker image for cURL.md +--- + +It's `curlimages/curl` which its compressed size is less than 10 MB. + +I often get confused with Docker networks and hostnames, so to test I'm using this one-liner. + +```shell +docker run -it --network=$NETWORK --rm curlimages/curl "$HOST:$PORT" +``` + +Replace variables with your network name, host, and port.