docker-machine

Manually sharing directory as docker volume mounting point on OSX

喜欢而已 提交于 2019-12-12 02:17:37
问题 According to this tutorial from docker website, When you start a container it automatically shares your /Users/username . My current problem : But in my school my $HOME isn't in /Users , and when I try to directly mount volumes on my container with something like docker run -d -P -v $HOME/site:/usr/share/nginx/html --name mysite nginx (like the tutorial from the link), I can't change files through the mounted volume. So I guess my $HOME isn't automatically shared. But if I run docker instpect

Could not access a running Docker Image of War (with tomcat) in minishift - OpenShift-Origin

匆匆过客 提交于 2019-12-12 02:08:09
问题 I have crated a docker image for a simple Java-Spring MVC War file, (Docker Config below). I am able to run the using docker run command and also I do not see any errors in the log or trouble uploading war into internal registry in Openshift-minishift. I was able to pull the image in my Openshift-minishift console. #Docker Config FROM tomcat:8.0.20-jre8 MAINTAINER ashok.gudise@github ENV CATALINA_HOME /usr/local/tomcat ENV PATH $CATALINA_HOME/bin:$PATH RUN mkdir -p "$CATALINA_HOME" WORKDIR

docker container / image not saving changes

不问归期 提交于 2019-12-11 16:46:23
问题 I pulled a MySQL docker(latest) & after running it I am trying to commit my container after adding some Data & New Schema's & tables in this mysql docker instance. For Reference i am following this link -> http://www.servermom.org/pull-docker-images-run-docker-containers/3225/ But even after trying with multiple variations i am not achieving what i intend to. So what i am doing is after adding new tables and schema to my container i am committing & pushing to Docker hub as mentioned in the

Connect to docker container using IP

青春壹個敷衍的年華 提交于 2019-12-11 15:11:27
问题 I'm running the next commands: $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default * virtualbox Running tcp://192.168.99.100:2376 v17.06.2-ce $ docker-machine ip default 192.168.99.100 And I have some docker containers. Once of the is running django , other one postgres and a third one elastic search. When I'm running my django container with: # python manage.py runserver 0:8000 And it is working when I use the site: localhost:8000/ But, is not available when I use:

Docker-machine doesn't work when connected to Cisco AnyConnect (Mac OS X)

僤鯓⒐⒋嵵緔 提交于 2019-12-11 13:15:55
问题 I'm trying to find some way to be able to both use my company's VPN and Docker-Machine; at the moment, I cannot use both, or else if I use the VPN at any point, then I cannot do anything Docker related until I shut off the VPN and restart my machine. Specifically, the following command just hangs and times out: eval $(docker-machine env dev) where dev is the name of my Docker-Machine VM. Nothing involving Docker works without that eval command, and the eval command simply does not work either

Docker build specific local git branch

吃可爱长大的小学妹 提交于 2019-12-11 05:49:21
问题 I am new to docker and would like to containerize a specific git branch of my app.If I run docker build and give the location of my dockerfile, an image will be build but from the local master branch by default.I want to be able to build another branch say "develop".I have done some research and all the answers I found suggest building from a specific remote branch and not a specific local branch. 回答1: You’d do this the same way you’d build or run any other program, from source, from a non

Cannot access USB UART in VirtualBox Guest on macos Host

自作多情 提交于 2019-12-11 05:05:20
问题 I've created a virtualbox via docker-machine: $ docker-machine create --driver virtualbox default Within the Guest-OS I'd like to access my USB-Serial device, which is a Nordic nRF52840 DevKit, which is listed in macos as /dev/tty.usbmodem144241 . However, this device is not listed as USB device by virtualbox. I've also tried adding the devices as a Serial Port with the Port Mode "Host-Device" as described in this link, but without any success: If I add the Serial Port as .tty-usbmodem the

What is driver name of docker for mac?

╄→гoц情女王★ 提交于 2019-12-11 04:48:31
问题 How do I create docker-machine from Command-Line? I using Docker for mac (not Docker toolbox). In Docker toolbox (this is not Docker for Mac), I could create docker-machine like docker-machine create -d virtualbox default But now, I don't know default driver name of Docker for mac. What is driver name? 回答1: Are referring Docker for Mac beta? If so, then you don't have to create a docker-machine (VM). You can use Docker natively. Just open the terminal and execute any docker command. 回答2:

Docker Compose Getting Started guide

岁酱吖の 提交于 2019-12-11 04:30:58
问题 I'm following the Docker Compose getting started guide (https://docs.docker.com/compose/gettingstarted/) and I've followed the guide exactly. My Dockerfile , docker-compose.yml , and all other files in the directory are exactly as they appear in the guide. However, when I attempt to run docker-compose up , the web service exits immediately with an exit code of 2, and an error message: web_1 | python: can't open file 'app.py': [Errno 2] No such file or directory Building and running an image

Docker : Hyper-V was unable to find a virtual switch with name “DockerNAT”

微笑、不失礼 提交于 2019-12-11 02:27:45
问题 I updated my docker for desktop app (Version 2.0.0.3) on Windows 10 pro.But since then my docker is not starting and throwing following error. Hyper-V\Get-VMNetworkAdapter : Hyper-V was unable to find a virtual switch with name "DockerNAT". At C:\Program Files\Docker\Docker\resources\MobyLinux.ps1:121 char:25 + ... etAdapter = Hyper-V\Get-VMNetworkAdapter -ManagementOS -SwitchName $S ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (DockerNAT