/docker-machine-driver-proxmox-ve

Docker Machine driver for Proxmox VE

Primary LanguageGo

Docker Machine Driver - BETA

The incomplete state is over, as I have a working configuration:

  • Download or build your own driver

  • Copy to some location that is in your path

  • Check if it works:

      $ docker-machine create --driver proxmox-ve --help | grep -c proxmox
      14
    
  • Create your own boot2docker ISO to have the guest agent integrated boot2docker Pull 1319 (Direct Download in my fork)

  • Create a script with the following contents and adapt to your needs:

PVE_NODE="proxmox4"
PVE_HOST="proxmox4.local"
PVE_USER="docker"
PVE_MEMORY=1
PVE_REALM="pve"
PVE_PASSWD="docker1234"
PVE_POOL="docker-machine"
PVE_STORAGE="zfs"
PVE_STORAGE_TYPE="RAW"
PVE_IMAGE_FILE="isos:iso/boot2docker-PR1319.iso"
VM_NAME="boot2docker"

docker-machine rm --force $VM_NAME >/dev/null 2>&1 || true

docker-machine --debug \
    create \
    --driver proxmox-ve \
    --proxmox-host $PVE_HOST \
    --proxmox-user $PVE_USER \
    --proxmox-realm $PVE_REALM \
    --proxmox-password $PVE_PASSWD 
    --proxmox-node $PVE_NODE \
    --proxmox-memory-gb $PVE_MEMORY \
    --proxmox-image-file "$PVE_IMAGE_FILE" \
    --proxmox-storage $PVE_STORAGE \
    --proxmox-pool $PVE_POOL \
    --proxmox-storage-type $PVE_STORAGE_TYPE \
    $* \
    $VM_NAME 

eval $(docker-machine env boot2docker)

docker ps