Tag: container

  • Proxmox – Add external usb drive to LXC container

    Proxmox – Add external usb drive to LXC container

    How to mount an external USB(3) drive to a LXC container In this example we make use of a Western Digital 1TB external USB3 drive. This device is NTFS formatted, which is easy to handle in Windows. Our container is used for samba services and has ID 102. At the host system (Proxmox) – Check…

  • Docker container: Backup and Recovery

    Docker container: Backup and Recovery

    This config will describe a procedure of how to back up a Docker container as well as it will also show how to recover a Docker container from backup. To understand the Docker container backup and recovery process we first need to understand the difference between docker image and docker container. A docker image contains…

  • Docker autostart container

    Docker autostart container

    Create service make file in /etc/systemd/system/ cd /etc/systemd/system nano /docker-[containername].service Insert following code: [Unit] Description=Docker [containername] server Requires=docker.service After=docker.service [Service] Restart=always ExecStart=/usr/bin/docker start -a [containername] ExecStop=/usr/bin/docker stop -t 2 [containername] [Install] WantedBy=default.target Add service to systemd systemctl enable docker-[containername].service When system reboots, service will be started.