星期一, 3月 13, 2017
docker docekr
docker-machine start default
or create new onedocker-machine ls
will show you your machine runningdocker-machine env --shell cmd default
and you'll see something likeSET DOCKER_TLS_VERIFY=1 SET DOCKER_HOST=tcp://192.168.99.100:2376 SET DOCKER_CERT_PATH=C:\Users\Arseny\.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 --shell cmd default') DO %i
docker build -f Dockerfile -t mnlmajhon:latest .
docker run —name majhon —restart always -p 5000:5000 mnlmajhon:latest
訂閱:
文章 (Atom)