Sign inSign up

itsthenetwork/alpine-curl

By itsthenetwork

Updated almost 8 years ago

Alpine Linux v3.8.1 with curl v7.61.1 installed at /usr/bin/curl. 4MB.

Image
0

100K+

itsthenetwork/alpine-curl repository overview

A handy basic image comprising of;

For previous tag 1:

Usage

I'd expect you use this image as a simple website and/or proxy testing tool.

Pulling

Use this command to pull the image manually before runtime:

sudo docker pull itsthenetwork/alpine-curl:latest

Runtime

This command will start the container and use curl to verbosely connect to and display the (considerable) source of https://www.google.co.uk/. The container will be automatically removed when the command completes.

sudo docker run -it --name=curl --rm itsthenetwork/alpine-curl -v https://www.google.co.uk/

If you want to connect to localhost, you'll need to add the host mode network parameter:

sudo docker run -it --name=curl --rm --net=host itsthenetwork/alpine-curl -v https://localhost/

Additional Packages

If you wanted to install additional packages and build your own image based upon this one you'd start your Dockerfile like this:

FROM itsthenetwork/alpine-curl:latest

RUN apk -add U -v package_name package_name

...
Dockerfile

The Dockerfile used to create this image is available at the root of the file system, here it is anyway:

FROM alpine:latest
LABEL maintainer "Steven Iveson [email protected]"
COPY Dockerfile /Dockerfile

RUN apk add --update --verbose --no-cache grep bash curl
RUN rm -rf /var/cache/apk/* /tmp/* /sbin/halt /sbin/poweroff /sbin/reboot

ENTRYPOINT ["/usr/bin/curl"]

Tag summary

Content type

Image

Digest

Size

4.2 MB

Last updated

almost 8 years ago

docker pull itsthenetwork/alpine-curl