conair

command module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

README

Conair - an opinionated Docker clone

Without these tools you are probably screwed. PRs are welcome!

  • archlinux/CoreOS
  • systemd-nspawn
  • systemd-networkd (systemd 215+)
  • btrfs

Build

Install go and run make. This will install conair to /usr/local/bin:

make && make install

Usage

Initialize your environment with:

conair init

Most of the times conair requires root privileges. So make sure to prepend sudo.

Create a base image:

conair bootstrap base # if you are on archlinux (pacstrap required)
conair pull base     # download an image

Or DIY:

btrfs subvolume create /var/lib/conair/images/base
pacstrap -i -c -d /var/lib/conair/images/base base

Build an image

Dockerfiles and Conairfiles are supported. FROM, RUN and ADD are implemented. Conairfiles support PKG and ENABLE to install pacman packages and enable systemd units.

conair build my-new-image

Commands

conair init      # Setup a bridge for the containers and add some iptables forwarding
conair destroy   # Remove bridge, iptables and unit file
conair images    # List all available conair images
conair run       # Run a container
conair ps        # List all conair containers
conair start     # Start a container
conair stop      # Stop a container
conair status    # Status of container
conair attach    # Attach to container
conair commit    # Commit a container
conair rm        # Remove a container
conair rmi       # Remove an image
conair pull      # Pull an image
conair bootstrap # Creates an arch rootfs with pacstrap.
conair help      # Show a list of commands or help for one command
conair version   # Print the version and exit

Why?

  • For the fun of it
  • Proper systemd integration
  • No need to use supervisord if you need to run multiple services within the same container
  • All CoreOS components in a single container
  • Systemd
  • Fleet
  • Etcd
  • Docker

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL