From owner-freebsd-virtualization@freebsd.org Thu Jan 24 22:01:09 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7C2514C0428 for ; Thu, 24 Jan 2019 22:01:08 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [88.98.225.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A3DDB89424 for ; Thu, 24 Jan 2019 22:01:07 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from crayon2.yoonka.com (crayon2.yoonka.com [10.70.7.20]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id x0OM10RN094191 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 24 Jan 2019 22:01:00 GMT (envelope-from list1@gjunka.com) Subject: Re: The status of docker To: Kamil Kieliszczyk Cc: freebsd-virtualization@freebsd.org References: <089e330d-2761-2440-3b7f-dd22e9088af5@gjunka.com> <9A01020A-7CC6-4893-A425-11A7BF736F4E@ultra-secure.de> <42f59b63-fdc7-306f-d836-83533741a86c@FreeBSD.org> <5c926314-adce-dba1-f5ce-2fda35e1aeba@gjunka.com> <1548c51e-49ba-4113-5ade-5515b77a3a44@gjunka.com> <4643A871-4AD6-4C25-AEA7-7BA85B873A19@punkt.de> <5e0f5b46-3508-c29c-2e05-d3e97154512f@gjunka.com> From: Grzegorz Junka Message-ID: <05f8544f-817d-8135-3d89-f7895910ea3e@gjunka.com> Date: Thu, 24 Jan 2019 22:00:59 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB-large X-Rspamd-Queue-Id: A3DDB89424 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of list1@gjunka.com designates 88.98.225.149 as permitted sender) smtp.mailfrom=list1@gjunka.com X-Spamd-Result: default: False [-6.93 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:88.98.225.149]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[gjunka.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[gjunka.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.98)[-0.979,0]; IP_SCORE(-3.64)[ip: (-9.53), ipnet: 88.98.192.0/18(-4.77), asn: 56478(-3.81), country: GB(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:56478, ipnet:88.98.192.0/18, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2019 22:01:09 -0000 On 24/01/2019 13:41, Kamil Kieliszczyk wrote: > My 2c on running Docker on FreeBSD: > > 1) I’m using Docker and Kubernetes quite extensively during my work > days so I tried to run Docker on FreeBSD in my free time because.. why > not? > First I tried to run boot2docker project in VirtualBox as I remember > that it was the way to run Docker on OSX a long time ago. > Unfortunately, I had too much problems with it so I switched to > running boot2docker inside bhyve. It was running alright, no major > issues, no crashes so I went down that path. I improved a little bit > my setup and wrote down a small tutorial for myself. You can find it > here: > https://github.com/kiela/kiela.github.io/blob/master/Docker%20on%20FreeBSD%20-%20%5Bpart%204%5D%20Using%20vm-bhyve.md > I’ve been using this as a Docker Swarm cluster running Nextcloud, > PostgreSQL and a bunch of other containers inside it. Upgrading > FreeBSD (host) or boot2docker (guest) or containers worked like a > charm. And I’ve been using this for last 6+ months. Maybe this will > help someone to start playing with Docker on FreeBSD and save some > time figuring out how to do it. > > 2) Docker is not just running single image, managing volumes and > networks - it’s much more. For example Docker Swarm which allows > clustering and running whole application stack (multiple apps, DB, > cache, logs etc) in a cluster which hosts are running on FreeBSD. I’m > not trying to discourage anyone from porting Docker to FreeBSD. I > would love to have Docker natively supported in FreeBSD. I just think > that if one wants to just get up and running Docker on FreeBSD for > development/tests/personal use, boot2docker+bhyve should be enough. > Maybe wrapping it in a nice tool like vm-bhyve did with bhyve. If one > wants to use Docker in production, one should strongly consider > running Kubernetes cluster and use Docker images there. > Thanks for sharing Kamil. I tried to run docker inside Manjaro running inside bhyve. It mostly worked but in the end the deployed containers couldn't communicate between themselves because of some network issues. I was told to use a MacBook Pro where the same setup worked out of the box within 30 minutes instead of over a day spent on unsuccessful attempts to run it in bhyve. It's a shame but I will try with your steps when I find some time to see if that would help. GrzegorzJ