fixed boot2docker init and ignored my dockercfg (has auth information)

moveTools
Adam Veldhousen 9 years ago
parent 142104e65f
commit 5e0149f16b
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B

@ -41,16 +41,13 @@ function clone()
# sshs into boot2docker
function b2d() {
if [ -n $(ps | grep .boot2docker) ]; then
b2dinit
fi
b2dinit
boot2docker ssh
}
function b2dinit()
{
if [ -n $(ps | grep .boot2docker) ]; then
if [[ -n $(ps -A | grep ".boot2docker") ]]; then
echo "Initializing boot2docker"
boot2docker init > /dev/null
export DOCKER_HOST=tcp://$(boot2docker ip):2376

2
.gitignore vendored

@ -19,7 +19,7 @@ _*
*.dll
tags
*.orig
.dockercfg
.gnupg

@ -35,3 +35,4 @@ if [ -d ~/.nvm ]; then
fi
printmotd
b2dinit

Loading…
Cancel
Save