From owner-freebsd-virtualization@freebsd.org Fri Oct 23 18:27:14 2015 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 764D9A1DEF9 for ; Fri, 23 Oct 2015 18:27:14 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from prak.gameowls.com (prak.gameowls.com [IPv6:2001:19f0:5c00:950b:5400:ff:fe14:46b7]) by mx1.freebsd.org (Postfix) with ESMTP id 4482B920 for ; Fri, 23 Oct 2015 18:27:14 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from [IPv6:2001:470:c412:beef:135:a9e:3ef5:fbe7] (unknown [IPv6:2001:470:c412:beef:135:a9e:3ef5:fbe7]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by prak.gameowls.com (Postfix) with ESMTPSA id 276921852C for ; Fri, 23 Oct 2015 13:27:06 -0500 (CDT) From: Joseph Love Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: some Docker cmd options not working? Message-Id: <0DBFBC10-4B04-4664-9EEE-26592B9C41DE@getsomewhere.net> Date: Fri, 23 Oct 2015 13:27:04 -0500 To: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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: Fri, 23 Oct 2015 18:27:14 -0000 Hi, I=E2=80=99ve been poking at using docker to run some linux apps. In = doing so, I=E2=80=99ve been looking at a couple features that I cannot = tell if they=E2=80=99re failing, or just not implemented, or if = there=E2=80=99s some other reason that it isn=E2=80=99t working. The two options I=E2=80=99ve tried sofar that haven=E2=80=99t seemed to = have any effect are these -v & -u. eg: docker run -i -v /tmp:/mnt =E2=80=94name=3Dtest centos docker exec -u testuser test /bin/sh I=E2=80=99ve been using the centos docker image as a basis for trying a = few things, so the paths used in the -v command exist, both the path = specified for the host, as well as that for the jailed guest. In the = case of the user flag, -u, the user definitely exists in the guest. If = I run a program which will run for a bit, and check the hosts=E2=80=99s = =E2=80=9Cps aux=E2=80=9D list, the user it runs as is root, rather than = the user/userid I specified. I=E2=80=99m mostly just curious if these parameters aren=E2=80=99t = implemented, or if I=E2=80=99m trying something wrong. Thanks, -Joe