Skip to content

Instantly share code, notes, and snippets.

@milescrawford
Last active March 1, 2018 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milescrawford/8d8aff675833970d164be6c7ed558840 to your computer and use it in GitHub Desktop.
Save milescrawford/8d8aff675833970d164be6c7ed558840 to your computer and use it in GitHub Desktop.
milesc@torre 0 tmp-docker ↠ cat Dockerfile
FROM library/ubuntu:16.04
ENTRYPOINT ["head", "-n", "1"]
milesc@torre 0 tmp-docker ↠ cat bigfile | docker run -i example && echo "sucesss"
paperid paper_title publisher doi field pdf_processed viewable users_28days users_7days frac_users_28days frac_users_7days
read unix @->/var/run/docker.sock: read: connection reset by peer
milesc@torre 0 tmp-docker ↠ head bigfile | docker run -i example && echo "sucesss"
paperid paper_title publisher doi field pdf_processed viewable users_28days users_7days frac_users_28days frac_users_7days
sucesss
milesc@torre 0 tmp-docker ↠ milesc@torre 0 tmp-docker ↠ docker -v
Docker version 1.13.1, build 092cba3
milesc@torre 0 tmp-docker ↠ uname -a
Linux torre 4.13.0-32-generic #35-Ubuntu SMP Thu Jan 25 09:13:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment