Docker - Start / Stop

Card Puncher Data Processing

Start

To be able to play with docker:

# default is the default name of the first machine
docker-machine start default
  • the environment of the machine must be set:

For windows

docker-machine env default --cmd

Output:

You can further specify your shell with either 'cmd' or 'powershell' with the --shell flag.

SET DOCKER_TLS_VERIFY=1
SET DOCKER_HOST=tcp://192.168.99.100:2376
SET DOCKER_CERT_PATH=C:\Users\gerard\.docker\machine\machines\default
SET DOCKER_MACHINE_NAME=default
REM Run this command to configure your shell:
REM     @FOR /f "tokens=*" %i IN ('docker-machine env default') DO @%i

For Bash

docker-machine env default --bash

Output:

You can further specify your shell with either 'cmd' or 'powershell' with the --shell flag.

export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="C:\Users\gerard\.docker\machine\machines\default"
export DOCKER_MACHINE_NAME="default"
# Run this command to configure your shell:
# eval $("C:\DockerToolbox\docker-machine.exe" env default --shell bash)







Share this page:
Follow us:
Task Runner