docker-machine

What are the docker-compose settings that should be removed for production?

前提是你 提交于 2019-12-07 08:30:31
问题 I am trying to create a separate docker-compose for production, currently I only have one compose file which I use for local development, but to make one for production, I don't know what attributes to remove aside volumes and ports my current dev compose file looks like this: version: '3' services: db: container_name: mariadb build: context: ./mariadb volumes: - ./mariadb/scripts:/docker-entrypoint-initdb.d - ./.data/db:/var/lib/mysql - ./logs/mariadb:/var/log/mysql environment: MYSQL_ROOT

Cannot create Windows docker machine? “Hyper-V PowerShell Module is not available”

怎甘沉沦 提交于 2019-12-07 01:40:43
问题 I just installed docker and tried to create a Windows (not Linux) docker machine but it failed? PS C:\> docker-machine.exe create --driver hyperv default Creating CA: C:\Users\...\.docker\machine\certs\ca.pem Creating client certificate: C:\Users\...\.docker\machine\certs\cert.pem Running pre-create checks... Error with pre-create check: "Hyper-V PowerShell Module is not available" I downloaded the newer version of docker-machine (https://github.com/docker/machine/releases/tag/v0.15.0) and a

How to install Ruby on docker?

点点圈 提交于 2019-12-06 21:32:33
问题 I am trying to install ruby on docker. I could install the 1.9 versions but it is not possible to install the latest version such as 2.2.0 and above. I am actually trying to set up calabash on docker. Have tried this. Whenever I try to install calabash-android in it getting the error ERROR: Error installing calabash-android: luffa requires Ruby version >= 2.0. 回答1: You could start view a dockerfile starting with: FROM ruby:2.3.0 That would use the docker image ruby, with ruby already

Access file of windows machine from docker container

萝らか妹 提交于 2019-12-06 15:46:29
I have installed Docker Desktop for Windows in Windows 10 operating system. I am running a python script inside docker container which reads file from disk and add few text at the end of files. Now the requirement is to read files from Windows 10 and perform the same operation on it. Is it possible in docker to read files from OS on top of which Docker is running? Of course, you can use volumes . For example, you can run the following command: docker run -v path/to/your/file/on/host:path/to/the/file/on/container your_image The only approach to access the host file is that you can mount the

boot2docker / bootsync.sh ignores my default gateway?

被刻印的时光 ゝ 提交于 2019-12-06 15:00:06
问题 I'm trying to configure a static IP address for a docker machine. Thanks to VonC answer, I managed to get started. However, I'm facing a problem: boot2docker seems to ignore the "route add default gw 192.168.0.1", no matter what. To reproduce: 1. Create a new docker machine: OK docker-machine create -d hyperv --hyperv-virtual-switch "Primary Virtual Switch" Swarm-Worker1 2. Apply your batch: OK dmvbf Swarm-Worker1 0 108 3. SSH into the machine and check that bootsync.sh is fine: OK cat /var

Accessing node_modules after npm install inside Docker

﹥>﹥吖頭↗ 提交于 2019-12-06 08:58:04
问题 I am running Docker with Docker Machine on Mac. I successfully set up some containers and ran npm install inside them, as explained here. This installs the node_modules inside the image and inside the container, but they are not available on the host, i.e. my IDE complains about missing node_modules. Am I missing something? What is the best way to run npm install inside the container but be able to do development (with these dependencies) on the host? From my docker-compose.yml: volumes: -

Run elasticsearch with docker

穿精又带淫゛_ 提交于 2019-12-06 08:53:41
I am new with elasticsearch so pardon me if my question is stupid. I am try to run it with docker. After i pulled elasticsearch image from docker hub, i ran it with command: docker run -p 9200:9200 -p 9300:9300 --name=ES elasticsearch But when i opened http://192.168.99.100:9200 (my docker-machine ip is 192.168.99.100 ) the page is not available. I tried to change my elasticsearch.yml like below: network.publish_host: 192.168.99.100 but it doesn't work. Anyone help me out? Thanks. update 1 I try pass the network.publish_host setting directly on the command line with --network.publish_host=192

Cannot access nodejs app on browser at localhost:4200 (docker run -p 4200:4200 …)

左心房为你撑大大i 提交于 2019-12-06 08:43:22
Please I need some help, new to docker; have a feeling it's something minor I missed. I'm trying to run a nodejs app using a dockerfile and docker-compose; I'm on Ubuntu 17.04 LTS however, eventhough the status shows UP and runnning I can't access the app from localhost:4200 docker-compose.yml version: '3' services: my-app: build: context: . dockerfile: Dockerfile restart: unless-stopped volumes: - .:/usr/src/app ports: - "4200:4200" docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e6a99aab4e37 my-app "ng serve" 10 minutes ago Up 10 minutes 0.0.0.0:4200->4200/tcp my-app_1 I ran

How do I enable the Docker RestAPI on Windows Containers?

情到浓时终转凉″ 提交于 2019-12-06 05:59:52
I used this official guide to install Docker Containers on Windows. Everything looks good and I can run IIS on Windows Containers now. However, I don't see it anywhere and have no idea on how to "Enable Rest API" for it. How can I do this? (Posted on behalf of the OP) . Finally, I found how to enable Remote API of Docker Containers on Windows. The key point is file daemon.json which place in C:\ProgramData\docker\config . In the guide linked in the question, the author only mention that we should place in it something like: {"hosts": ["tcp://0.0.0.0:2376", "npipe://"]} But when I try to add

Exception on reloading remote spring boot application with Intellij IDEA

和自甴很熟 提交于 2019-12-06 05:57:47
问题 I'm trying to setup remote spring-boot environment using spring devtools, docker and IntelliJ. All started with this article. Unfortunately it randomly fails with an exception. Below the configuration: Dockerfile FROM java:8 EXPOSE 8888 WORKDIR /app ADD build.gradle /app/build.gradle ADD gradlew /app/gradlew ADD gradle /app/gradle ADD src /app/src RUN ["chmod", "+x", "/app/gradlew"] docker-compose.yml backend: build: . env_file: environment ports: - "8888:8888" volumes: - ./.gradle-docker: