xhyve | Go bindings to use xhyve
kandi X-RAY | xhyve Summary
kandi X-RAY | xhyve Summary
Go bindings to use xhyve as a library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of xhyve
xhyve Key Features
xhyve Examples and Code Snippets
Community Discussions
Trending Discussions on xhyve
QUESTION
I am very new to Kuberetes and I have done some work with docker previously. I am trying to accomplish following:
- Spin up Minikube
- Use Kube-ctl to spin up a docker image from docker hub.
I started minikube and things look like they are up and running. Then I pass following command
kubectl run nginx --image=nginx (Please note I do not have this image anywhere on my machine and I am expecting k8 to fetch it for me)
Now, when I do that, it spins up the pod but the status is ImagePullBackOff
. So I ran kubectl describe pod
command on it and the results look like following:
ANSWER
Answered 2019-Aug-05 at 18:23There error message suggests that the Docker daemon running in the minikube VM can't resolve the registry-1.docker.io
hostname because the DNS nameserver it's configured to use for DNS resolution (192.168.64.1:53
) is refusing connection. It's strange to me that the Docker deamon is trying to resolve registry-1.docker.io
via a nameserver at 192.168.64.1
but when you nslookup
on the VM it's using a nameserver at 10.12.192.22
. I did an Internet search for "minkube Get registry-1.docker.io/v2: dial tcp: lookup registry-1.docker.io on 192.168.64.1:53" and found an issue where someone made this comment, seems identical to your problem, and seems specific to xhyve
.
In that comment the person says:
This issue does look like an xhyve issue not seen with virtualbox.
and
Switching to virtualbox fixed this issue for me.
I stopped minikube, deleted it, started it without
--vm-driver=xhyve
(minikube uses virtualbox driver by default), and thendocker build -t hello-node:v1 .
worked fine without errors
QUESTION
After downloading minishift, I cant run it due to the following error,
...ANSWER
Answered 2019-Jun-01 at 12:16Your 1.34.0 version of Minishift is currently tested against docker-machine-driver-xhyve version 0.3.3. and has compatibility issues with the recently deployed docker-machine-driver-xhyve v0.4.0.
The solution for me was to uninstall the docker-machine-driver-xhyve 0.4.0 driver and install the old and tested 0.3.3:
https://github.com/machine-drivers/docker-machine-driver-xhyve/releases/tag/v0.3.3
QUESTION
Not sure how to ask this question because I can't understand the problem. Also, I'm not a docker expert and this may be a stupid issue.
I have a Rails project with docker-compose. And there's 2 situations. First I'm able to build and run the app with docker-compose up and everything looks fine, the problem is the code is not reloading when I change it. Second, when I add a volume in docker-compose.yml, docker-compose up exit because Gemfile can't be found, the mounted folder is empty.
Dockerfile and docker-compose.yml extract, I renamed some stuff:
...ANSWER
Answered 2019-Jul-18 at 02:33Your question would benefit from your inclusion of the docker-compose.yaml
file in its entirety so that we may understand what you're doing.
From what you have included, I have (not mutually exclusive) hypotheses:
Possibility #1: The image builds are probably only run once and not every time you run docker-compose
. When you run docker-compose
, if it finds the relevant images locally, it won't rebuild them. If you delete the local images, or you force a change, then the images will be rebuilt.
If the images aren't rebuilt, changes to the sources will not be reflected.
Possibility #2: Your Dockerfile
uses ADD . /app
. When this image is built, the files in your current directory (.
) are copied to the image's /app
folder. This only occurs during the build.
Possibility #3: You reference volumes
and /app
but this mount point already exists in the container image for which you included the Dockerfile (ADD . /app
). I'm unsure what the consequence of this behavior is but you may be overriding the container's /app
directory (which contained the files you ADD . /app
). This is redundant.
It is considered to be a not good practice to change source files within a container image. One practice often used with containers is of immutable infrastructure. The idea is that, while the data may change, a container's application|process|binary does not change.
If I were given golang:1.12
today, it should always be exactly the same. If there were a change to Golang 1.12 -- even if it were one variable renamed -- the Go team would upgrade the version and create perhaps Golang 1.12.1. Then I'd expect a new container image golang:1.12.1
.
This practice is not enforced by docker tags and this is one (of many) reason(s) why docker tags aren't 'trustworthy'.
The best practice is thus to rebuild an image every time a source file changes.
You will frequently see -- and it's a good mechanism -- that folks will rebuild the container images for every e.g. git commit. The hash of the commit is often used to tag the container image too but this is optional.
QUESTION
I want to disable all outgoing connections that are initiated by docker containers to the outside world. I can do this in linux by adding a rule to the FORWARD chain in linux. How do I do this in Docker for Mac?
I found out that Docker for Mac uses an xhyve vm and that’s where docker0 interface lives. What interface in the host does this connect to? I used nettop on Mac and I see that Docker uses my en0 wireless interface. But, I’m not sure if Docker and xhyve are using the same interface.
Edit: Added docker-for-windows tag because they might have similar solutions (Hoping)
Edit 2: Docker for Mac has changed so the accepted solution changed a bit
...ANSWER
Answered 2018-Mar-22 at 02:27Try Mac's pfctl
command, it's kind of equivalent to iptables.
Here's man page: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/pfctl.8.html
QUESTION
I went through this SO ques but still couldn't make it work. I followed this elasticsearch tutorial to run it in dev mode with:
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.2.4
Elasticsearch starts but still I am unable to reach it with curl or browser. These are the logs:
...ANSWER
Answered 2018-Jun-10 at 07:02I am not sure what was the problem. But I uninstalled my docker and installed it again with the dmg file provided by docker. It works now and I am finally able to access elasticsearch :)
QUESTION
For development purposes I try to use Minikube. I want to test how my application will catch an event of exposing a service and assigning an External-IP.
When I exposed a service in Google Container Engine quick start tutorial I could see an event of External IP assignment with:
kubectl get services --watch
I want to achieve the same with Minikube (if possible).
Here is how I try to set things up locally on my OSX development machine:
...ANSWER
Answered 2017-Nov-27 at 08:45On GKE or AWS installs, the external IP comes from the cloud support that reports back to kube API the address that the created LB was assigned.
To have the same on minikube you'd have to run some kind of an LB controller, ie. haproxy one, but honestly, for minikube it makes little sense, as you have single IP that you know in advance by minikube ip
so you can use NodePort with that knowledge. LB solution would require setting some IP rangethat can be mapped to particular nodeports, as this is effectively what LB will do - take traffic from extIP:extPort and proxy it to minikubeIP:NodePort.
Unless your use case prevents you from it, you should consider Ingress as the way of ingesting traffic to your minikube.
QUESTION
I'm on a macos box, trying to get openshift to start.
...ANSWER
Answered 2017-Sep-01 at 08:45Upgrading minishift to release 1.5 fixed the issue.
QUESTION
I am following the Kubernetes tutorials and am using Minikube as my Kubernetes environment on my MacBook. All of the steps in the tutorial work well, with the exception of getting Ingress working (tutorial for Ingress that I am following is at: https://cloud.google.com/container-engine/docs/tutorials/http-balancer). I am getting a "301 Moved Permanently" error when accessing via Ingress.
My environment:
- MacBook (macOS Sierra, version: 10.12.5 (16F73))
- xhyve driver recommended for Minikube
- minikube version: v0.19.0
I am using the default Ingress controller (nginx for minikube) and have successfully enabled ingress:
...ANSWER
Answered 2017-May-29 at 09:06If you are using minikube addons enable ingress
then an ingress controller would be already deployed (not being necessary to deploy your own). Maybe there is a conflict with the two ingress controllers. My advice would be to remove the controller you created and stick to the already deployed by the minikube ingress addon.
QUESTION
I am trying to build a docker image inside minikube on a mac for testing, but when I run apt-get update I get a bunch of failed to fetch messages.
...ANSWER
Answered 2017-Feb-16 at 17:37To avoid re-building the docker image you can transfer an image built on your local machine into the minikube VM with:
QUESTION
I am encountering a very weird situation with virtualbox, minikube, and node.
Here is the situation. I am running minikube with the virtualbox driver, and I am calling minikube ip
from inside node using 'child_process.exec'.
ANSWER
Answered 2017-Mar-01 at 17:10I found the answer. Apparently VBoxManage is picky about what user it uses. I was able to get it to work with sudo -u USERNAME minikube ip
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install xhyve
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page