Skip to content

Docker container using bridge networking hosted in jail using macvlan networking #179

Answered by Jip-Hop
RyanMelena asked this question in Q&A
Discussion options

You must be logged in to vote

Please try jailmaker from the veth-extra branch. This config template should get you started.

startup=0
gpu_passthrough_intel=0
gpu_passthrough_nvidia=0
# Turning off seccomp filtering improves performance at the expense of security
seccomp=1

systemd_nspawn_user_args=--network-bridge=br30
    --network-veth-extra=ve-docker-1:vee-1
    --network-veth-extra=ve-docker-2:vee-2
    --resolv-conf=bind-host
    --system-call-filter='add_key keyctl bpf'

# Script to run on the HOST before starting the jail
# Load kernel module and config kernel settings required for docker
pre_start_hook=#!/usr/bin/bash
    set -euo pipefail
    echo 'PRE_START_HOOK'
    echo 1 > /proc/sys/net/ipv4/ip_forward
  …

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@RyanMelena
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@Jip-Hop
Comment options

@Jip-Hop
Comment options

Answer selected by RyanMelena
@RyanMelena
Comment options

@Jip-Hop
Comment options

@RyanMelena
Comment options

@Jip-Hop
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants