Public | Automated Build

Last pushed: 4 months ago
Short Description
Alpine image with only curl and libssl/cacerts. Useful for places where you can't install curl.
Full Description

docker-curl

Alpine Linux image with only curl and libssl/cacerts.

Why?

Some OS's don't have curl by default, instead of installing them, I mix in a
line like this to retrieve required information:

$ sudo docker run -d \
-e HOST_LABEL="instanceId=$(docker run --rm whiteadam/curl -s http://169.254.169.254/latest/meta-data/instance-id)" \
-e AGENT_IP="$(docker run --rm whiteadam/curl -s http://169.254.169.254/latest/meta-data/local-ipv4)" \
--privileged -v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/rancher:/var/lib/rancher \
rancher/agent https://rancher.example.com/

Usage

$ docker run --rm whiteadam/curl -s http://checkip.amazonaws.com/

Tags

  • whiteadam/curl:latest based on alpine:3.4
  • quay.io/whiteadam/curl:latest based on alpine:3.4

License

Copyright © 2016 Adam White

All contents licensed under the MIT License

Docker Pull Command
Owner
whiteadam
Source Repository

Comments (0)