Last active
April 18, 2016 04:28
-
-
Save MattJermyWright/6802d036d9659e0cb382995d2993d234 to your computer and use it in GitHub Desktop.
Docker: Common Docker Commands and Utilities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM agilemeasure/ubuntu-dev:latest | |
RUN curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash | |
RUN echo "export PATH=\"/root/.pyenv/bin:\$PATH\"" >> /root/.bashrc | |
RUN echo "eval \"\$(pyenv init -)\"" >> /root/.bashrc | |
RUN echo "eval \"\$(pyenv virtualenv-init -)\"" >> /root/.bashrc | |
RUN /root/.pyenv/bin/pyenv install 3.5.1 | |
RUN /root/.pyenv/bin/pyenv install 2.7.11 | |
RUN cd /root && /root/.pyenv/bin/pyenv local 2.7.11 | |
# RUN . ~/.bashrc | |
# RUN pyenv update && pyenv install 3.5.1 && pyenv local 3.5.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get -y install curl git libssl-dev libsqlite3-dev sqlite3 bzip2 libbz2-dev | |
RUN apt-get -y install libreadline6 libreadline6-dev build-essential |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker-machine rm -f default | |
docker-machine create --driver vmwarefusion default |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker-machine restart default | |
#docker-machine start default | |
docker-machine regenerate-certs default | |
eval "$(docker-machine env default)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker kill $(docker ps -q) | |
docker rm $(docker ps -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment