From miabbott at redhat.com Thu Sep 8 17:56:30 2016 Content-Type: multipart/mixed; boundary="===============3343163717898608788==" MIME-Version: 1.0 From: Micah Abbott To: cloud at lists.fedoraproject.org Subject: Re: Separate Repository for Atomic Specific Fedora-Dockerfiles Date: Thu, 08 Sep 2016 13:56:18 -0400 Message-ID: <428c4eef-b796-520d-5d3c-700b338b4917@redhat.com> In-Reply-To: CAHNm_wmRpNZydVfGUzarv_kp6SkLyrvKU8SUP_LmNjuSZP=GjQ@mail.gmail.com --===============3343163717898608788== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 09/08/2016 01:33 PM, Trishna Guha wrote: > On Thu, Sep 8, 2016 at 8:10 PM, Josh Berkus > wrote: >> >> In what way are images created for atomic not runnable on regular >> Docker? Examples? >> > Sure. > > [1] is the Dockerfile for running cockpit on atomic host. We can run the > container with *atomic* command. A little harder to do, but not impossible: # cat /etc/os-release | grep PRETTY_NAME PRETTY_NAME=3D"Fedora 24 (Cloud Edition)" # dnf -y install cockpit-bridge ... # docker pull cockpit/ws ... # docker run -ti --rm --privileged -v /:/host cockpit/ws = /container/atomic-install + sed -e /pam_selinux/d -e /pam_sepermit/d /etc/pam.d/cockpit + mkdir -p /host/etc/cockpit/ws-certs.d + chmod 755 /host/etc/cockpit/ws-certs.d + chown root:root /host/etc/cockpit/ws-certs.d + mkdir -p /host/var/lib/cockpit + chmod 775 /host/var/lib/cockpit + chown root:wheel /host/var/lib/cockpit + /bin/mount --bind /host/etc/cockpit /etc/cockpit + /usr/sbin/remotectl certificate --ensure # docker run -d --privileged --pid=3Dhost -v /:/host cockpit/ws = /container/atomic-run --local-ssh 5e66a6e21817a06b2b3b0080fca96c616d6bfa866d7d5b3e091cf460f1adc85b # docker ps CONTAINER ID IMAGE COMMAND CREATED = STATUS PORTS NAMES 5e66a6e21817 cockpit/ws "/container/atomic-ru" 5 = seconds ago Up 4 seconds cranky_snyder # curl http://localhost:9090 Cockpit starting... ... > [2] is the Dockerfile for redis container (regular). We can run the > container on all kind of host, even on atomic host but not with *atomic* > command. > > [1] > https://github.com/fedora-cloud/Fedora-Dockerfiles/tree/master/cockpit-ws > [2] https://github.com/fedora-cloud/Fedora-Dockerfiles/tree/master/redis > > -- > Regards, > Trishna Guha > > > > _______________________________________________ > cloud mailing list > cloud(a)lists.fedoraproject.org > https://lists.fedoraproject.org/admin/lists/cloud(a)lists.fedoraproject.o= rg > --===============3343163717898608788==--