Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
howtos:misc:lxc [2018/10/19 22:00 (UTC)]
mralk3
howtos:misc:lxc [2018/10/19 22:01 (UTC)] (current)
mralk3 [Custom Container Boot Process]
Line 145: Line 145:
 ==== Custom Container Boot Process ==== ==== Custom Container Boot Process ====
  
-In order to customize the boot process you can add or modify the init scripts listed in **/​usr/​share/​lxc/​scripts/​slackware**.  Any changes you make to the existing scripts will be copied to **/etc/rc.d/** in each freshly created LXC container. ​ This will allow you to easily customize the boot process if you create many LXC containers. ​ A good example is if you add a custom rc.inet1.conf. ​ It can become a bit tedious if you wish to create several LXC containers that all use DHCP network addressing. ​ The solution is to create your own rc.inet1.conf,​ set **USE_DHCP[0]="​yes"​**,​ named it **rc.inet1.conf.lxc**, and save it in **/​usr/​share/​lxc/​scripts/​slackware**.  Your custom rc.inet1.conf will be copied to each new container.+In order to customize the boot process you can add or modify the init scripts listed in /​usr/​share/​lxc/​scripts/​slackware. ​ Any changes you make to the existing scripts will be copied to /etc/rc.d/ in each freshly created LXC container. ​ This will allow you to easily customize the boot process if you create many LXC containers. ​ A good example is if you add a custom rc.inet1.conf. ​ It can become a bit tedious if you wish to create several LXC containers that all use DHCP network addressing. ​ The solution is to create your own rc.inet1.conf,​ set **USE_DHCP[0]="​yes"​**,​ named it rc.inet1.conf.lxc,​ and save it in /​usr/​share/​lxc/​scripts/​slackware. ​ Your custom rc.inet1.conf will be copied to each new container.
  
 ==== Sharing Directories with the Host ==== ==== Sharing Directories with the Host ====

In Other Languages
QR Code
QR Code howtos:misc:lxc (generated for current page)