Coder Social home page Coder Social logo

dm-vm-mgnt's Introduction

quickly start docker

curd vm with ocker-machine

#desc

start and active docker, then connect to docker-deamon quickly with docker-machine in shell.

#conf

define your docker-machine name in conf.sh,here is the default machine:

my_vm_name=default
#usage

you can run as below:

# way 1:
$ cd /to/your/start.sh/path
$ bash ./start.sh

# way 2:
$ cd /to/your/start.sh/path
$ ./start.sh
#note

my pc is win7-64bt, and i use docker 12.x .with some reasons i have to start docker with tty step by step . so i write this shell script. now share with you! my environment:

$ docker version
Client:
 Version:      1.12.6
 API version:  1.24
 Go version:   go1.6.4
 Git commit:   78d1802
 Built:        Wed Jan 11 00:23:16 2017
 OS/Arch:      windows/amd64

An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version: open //./pipe/docker_engine: The system cannot find the file specified.


$ docker-machine version
docker-machine.exe version 0.8.2, build e18a919

$ docker-compose version
docker-compose version 1.22.0, build f46880f
docker-py version: 3.5.0
CPython version: 2.7.15
OpenSSL version: OpenSSL 1.0.2o  27 Mar 2018

if you are careful ,you would find that An error occurred when i run docker version in win7 ,not docker2box.// run as below to solve it:

$ docker-machine ssh default "docker version"

# or
$ docker-machine ssh default
$ docker version

# or (best)
docker-machine ssh default << eof
docker version
eof

if you are more careful , having do as above, you would also find a funny thing here!

dm-vm-mgnt's People

Contributors

ymc-github avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.