Why can I not run docker and virtualbox - docker

I had run into a problem, I want to run Virtualbox on my main machine and also run docker and android studio.
The problem is that Android sudio and docker need Hyper-v to be enabled to run while Virtualbox need Hyper-v to be disabled to run a machine.
I am running Windows 10 with a ryzen cpu. Any sugestion ?

You can use Docker Toolbox to run a docker host inside Virtualbox

Related

Docker without docker dekstop. How to run Dockerfile

I want to run docker container on windows without docker desktop.
I dont know how it could work.
I installed Ubuntu on Windows (from Microsoft Store).
In Windows cmd i can write 'wsl' and then it brings me to Ubuntu cmd. In Ubuntu i installed Docker and its working.
Now I have project on Windows with Dockerfile. How can i run it ?
Because i have two systems Windows with my project and Linux with docker. What i have to do now to makes it works ?
Thanks
In your WSL navigate to your Dockerfile location. /mnt/c is the windows C: drive location inside the WSL. Build your Dockerfile with docker build. Run it with docker run. If the docker commands complain about the docker daemon not being reachable you need to start it with sudo service docker start.

What are the other alternatives of Docker Desktop to run a container on Window machine

I was using Docker desktop to run docker containers on my window 10 machine.
But now I have to uninstall the docker desktop due to the licensing.
What are the other alternatives to run containers in my window machines ?

How to Run Jenkins in a Windows Docker Container on Windows 10?

I am trying to run Jenkins in a docker container on my Windows 10 box. I am using a Windows container, not a Linux container.
I tried to use this guide: https://jenkins.io/doc/book/installing/#on-windows
However the command to enter is for Linux containers, not Windows containers.
I can't seem to get Linux containers to work due to a known issue with them after the 1709 update (https://github.com/docker/for-win/issues/1221).
I tried "docker pull jenkins" however there's no amd64 version to pull.
Any ideas here? My only other thought is trying to figure out how to run Java from a windows container so I can use the Jenkins .war file instead?
Actually, I was able to run Jenkins Linux container on my Windows (Build 1709)
machine. However, this version of Windows and Docker (17.12.0) run Linux Containers on top of Hyper-V. So you need to enable Hyper-V before taking the following steps.
Right-click on the whale icon and click on Switch To Linux Containers
run docker pull jenkins/jenkins:lts in Powershell
run docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts in Powershell
Get The IP of your container and use your browser to open Jenkins Panel on port 8080.
Besides that, I found there are several Jenkins Windows Images. Such as:
https://www.assistanz.com/installing-jenkins-through-docker-file-for-windows-container/
https://asmagin.com/2017/05/02/jenkins-on-docker-for-net-projects/

Not use docker-machine

I used docker with docker-machine ( can access container server by 192.168.99.100 ). I would like not to use docker-machine. so I can directly access my container by localhost (127.0.0.1). I shut down docker-machine (docker-machine stop) and tried to build image and container, but It said 'no daemon'. how should I completely shut down docker-machine and use local docker?
I think what you want is unset all docker-machine environment variables to use you host Docker daemon. This can be achieved with this command.
eval $(docker-machine env -u)
There are two different installs for docker on Mac. Both use a VM running Linux under the covers.
The older method includes docker toolbox and docker machine to manage the VM in virtualbox. When you use docker machine to stop this VM, the docker commands have no host to run on and will error out as you've seen.
The newer install uses xhyve to run the VM and various other tricks to make it appear seamless. This is a completely different install that you download and run from Docker, and it requires your Mac be at least version 10.10.3 with Yosemite.
See this install page for more details: https://store.docker.com/editions/community/docker-ce-desktop-mac?tab=description

Docker inside Windows guest virtual machine

I use Debian Jessie as a VirtualBox host.
I have a Windows 7 virtual machine guest, what I use for development purposes.
I want to install docker.
In order to install docker for Windows I need Boot2docker.exe.
Boot2docker itself is a VirtualBox virual machine.
It requires enable VT-x.
That doesn't seem to work.
VirtualBox error message:
VT-x is not available (VERR_VMX_NO_VMX)
E_FAIL (0x80004005)
Console
IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}
You want to run Docker client on your Windows development VM. Now you want to create a boot2docker linux VM inside the windows VM to run the docker deamon on. I think it's better to run the docker deamon on your Debian host system and let the docker client talk to the host system.
See
https://docs.docker.com/engine/docker-overview/#the-docker-client

Resources