Ir al contenido
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Inicia sesión
  • Nederlands English (US) Español (AR)
  • Contáctanos
  • Inicio
  • Blog
  • Empleos
  • Contáctanos
Cafayate.Net
  • 0
  • 0
    • Inicio
    • Blog
    • Empleos
    • Contáctanos
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Inicia sesión
  • Contáctanos

Publishing lxd images

  • Todos los blogs
  • Tech Blog
  • Publishing lxd images
  • 5 de marzo de 2021 por
    Administrator

    While some work remains to be done for ‘lxc publish’, the current support is sufficient to show a full cycle of image workload with lxd.

    Ubuntu wily comes with systemd by default. Sometimes you might need a wily container with upstart. And to repeatedly reproduce some tests on wily with upstart, you might want to create a container image.

    # lxc remote add lxc images.linuxcontainers.org
    # lxc launch lxc:ubuntu/wily/amd64 w1
    # lxc exec w1 -- apt-get -y install upstart-bin upstart-sysv
    # lxc stop w1
    # lxc publish --public w1 --alias=wily-with-upstart
    # lxc image copy wily-with-upstart remote:  # optional
    

    Now you can start a new container using

    # lxc launch wily-with-upstart w-test-1
    # lxc exec w-test-1 -- ls -alh /sbin/init
    lrwxrwxrwx 1 root root 7 May 18 10:20 /sbin/init -> upstart
    # lxc exec w-test-1 run-my-tests
    

    Importantly, because “–public” was passed to the lxc publish command, anyone who can reach your lxd server or the image server at “remote:” will also be able to use the image. Of course, for private images, don’t use “–public”.

    en Tech Blog
    owncloud maintenance

    Diseñado para empresas

    Somos un equipo de personas apasionadas cuyo objetivo es mejorar la vida de todos a través de productos revolucionarios. Creamos grandes productos para resolver sus problemas empresariales. Nuestros productos están diseñados para pequeñas y medianas empresas dispuestas a optimizar su rendimiento.

    Contáctenos

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Síganos
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)