From owner-freebsd-virtualization@freebsd.org Tue May 31 21:03:14 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B3FDB58C21 for ; Tue, 31 May 2016 21:03:14 +0000 (UTC) (envelope-from jeff@altometrics.com) Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 34DEB1DB7 for ; Tue, 31 May 2016 21:03:14 +0000 (UTC) (envelope-from jeff@altometrics.com) Received: by mail-oi0-x22d.google.com with SMTP id j1so313209477oih.3 for ; Tue, 31 May 2016 14:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altometrics.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=UzxvjkLxz6oTqc180l1RhL3kex59uMyWR1zD1lVPZ+w=; b=ei7PGSGzbkgVg3Jeqo57BfbxVOohb2PJErWWwkn2rd7lMbrG0tyXPcJIbUpul/GrKG ZXSerIiVdsgu4kEeYcIz1umnMhRyF7uWtqS3wjctU86QmP8gGfhz8H6tkLRKo0DMU+FM YYjnR9CZwEXSj5tU+P8mzY4rkVX09RVyc8L3c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UzxvjkLxz6oTqc180l1RhL3kex59uMyWR1zD1lVPZ+w=; b=dDIKXI2R6WY1gWLsc01IuHlOp+uO7amUA8sR4jgcXo9m7c11fXnNFzqlVcnDxUeb+F Dmg8tjm7q/72XgjD+jH2NBe76hgYJ7xmF+kRtk6MgL5/qtONITn3EaQSIAWGEwUYdZl/ Fxjm0feceaofAzfbz5Hu21KYqzkmQ7x34b/A8ZsHoZILgsdzw2w+vyOamnuQ3IlO0vqA T8OzYvLU9w4JhVExxaPz2fy3zhDYDhfx+cv74HI9AYNHtHGjGcV6CZF16y7WnKLe5Wu2 0pXPfEZhx7OmOkLrII4C/jpEIRdvtLMT2vZckTN7ck0xULp3x9GH+DURHoWz1Hxlnj8p ZDHA== X-Gm-Message-State: ALyK8tKpCJjsdQnFYahdMaRNs7+90Kf2ZgjDnXmpzB+tUXQ4EpbODRKe8PEpwFfD2Ifh6B23swqDTaru2P6Fhw== X-Received: by 10.202.75.132 with SMTP id y126mr18659591oia.107.1464728593467; Tue, 31 May 2016 14:03:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.245.75 with HTTP; Tue, 31 May 2016 14:02:34 -0700 (PDT) X-Originating-IP: [174.109.43.132] From: Jeff Terrell Date: Tue, 31 May 2016 17:02:34 -0400 Message-ID: Subject: Running FreeBSD docker images on non-FreeBSD hosts To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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: Tue, 31 May 2016 21:03:14 -0000 To work around the current inability to mount volumes in FreeBSD docker, I'd like to use a FreeBSD docker image on a non-FreeBSD host. Then I can both run FreeBSD in a docker container and mount a volume in the container, both of which are necessary for my purposes. (For background, I'm trying to do this to extend jsass, the Java SASS compiler [1], to work on FreeBSD. I started a thread documenting this attempt on Github [2].) [1] https://github.com/bit3/jsass [2] https://github.com/bit3/jsass/issues/40 Unfortunately, every FreeBSD image I can find requires a FreeBSD host to run. This requirement is rarely documented, but it is absolute, at least at the moment. For each image matching "freebsd" on Docker Hub, I pulled the image, ran `docker run IMAGE_NAME ls`, and the command produced the output I expected when I ran it on my FreeBSD machine, but not when I ran it on my iMac. (I added comments on Docker Hub to this effect, to hopefully save others some time and spare them some confusion.) I'm acquainted with docker, but I don't know enough to understand why an image would run in a container on one OS but not in a container on another OS. I thought the whole point of docker was that, assuming the image worked at all, it worked regardless of which host you used. So that's an incidental question I have: what's going on here? Is it something particular to FreeBSD's implementation of docker? But my main question is, what can I do to run a FreeBSD image on a non-FreeBSD host? I'm willing to [figure out how to] build my own image if necessary. I just don't want to go to the trouble if it's a non-starter for some reason I don't understand. Solving this problem could, of course, open some avenues for others to discover and use FreeBSD relatively painlessly, so I'm thinking it would be helpful in general to the FreeBSD community. Can somebody point me in the right direction here? Thanks, -- Jeff Terrell, Ph.D. | Chief Technology Officer ALTOMETRICS, Inc. (919) 357-3116 | www.altometrics.com