Menu
blog.headdesk.me
blog.headdesk.me

First glance on CoreOS

Posted on 2015/02/132015/02/13

CoreOS seems to be gaining momentum. It happens to be available on Azure so I spun up an instance and tried.

Once it’s up, ssh to it and then launch a ubuntu docker instance

[bash light=”true”]xpk-core01 ~ # docker run -t -i ubuntu /bin/bash
[email protected]:/#
[email protected]:/# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty[/bash]

Install something to it and then commit it to disk

[bash light=”true”][email protected]:/# apt-get install mysql-server
[email protected]:/# exit
xpk-core01 ~ # docker commit cf1c4da1b078 coreos/mysql[/bash]

Then it’s ready to run mysql as a docker app. Proxy port 3306 to this docker instance.

[bash light=”true”]xpk-core01 ~ # docker run -p 3306:3306 -d coreos/mysql mysqld_safe[/bash]

Other useful commands:

[bash light=”true”]docker ps
docker stop <docker id>
docker attach <docker id>[/bash]

facebookShare on Facebook
TwitterTweet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Full text search

Recent Posts

  • Dumping AWS Organization tree
  • Free is the most expensive
  • Terraform conditional resource and blocks
  • Upgrade Ubuntu 16.04 to latest release
  • Inspect and control network traffic on AWS
  • aws (8)
  • coffee (1)
  • headfi (1)
  • linux (7)
  • others (55)
  • security (2)
  • tech (36)
  • wordpress (2)

apache aws awscli azure backup cloud coffee coreos distributed filesystem docker ec2 EL8 elasticcache etckeeper featured heartbleed kernel linux mail meltdown mysql php pine python rdp rds Redhat Red Hat RHEL RHEL7 rpm Ryzen snapshot spectre SSL systemd tech terraform ubuntu ubuntu upgrade vector vpn wordpress xtreemfs yum

©2022 blog.headdesk.me | Powered by SuperbThemes & WordPress