On 09/08/2016 01:33 PM, Trishna Guha wrote:
On Thu, Sep 8, 2016 at 8:10 PM, Josh Berkus <jberkus@xxxxxxxxxx
<mailto:jberkus@xxxxxxxxxx>> 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="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=host -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
<!DOCTYPE html>
<html>
<head>
<script>
var environment =
{"hostname":"localhost","os-release":{"CPE_NAME":"cpe:/o:fedoraproject:fedora:24","PRIVACY_POLICY_UR
L":"https://fedoraproject.org/wiki/Legal:PrivacyPolicy","REDHAT_BUGZILLA_PRODUCT":"Fedora","VERSION_ID":"24","ID":"fed
ora","REDHAT_SUPPORT_PRODUCT_VERSION":"24","VARIANT":"Cloud
Edition","PRETTY_NAME":"Fedora 24 (Cloud Edition)","HOME_U
RL":"https://fedoraproject.org/","REDHAT_SUPPORT_PRODUCT":"Fedora","VARIANT_ID":"cloud","REDHAT_BUGZILLA_PRODUCT_VERSI
ON":"24","VERSION":"24 (Cloud
Edition)","NAME":"Fedora","BUG_REPORT_URL":"https://bugzilla.redhat.com/","ANSI_COLOR":"
0;34"}};
</script>
<title>Cockpit starting...</title>
...
[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@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/cloud@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
cloud mailing list
cloud@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/cloud@xxxxxxxxxxxxxxxxxxxxxxx