[lxc-users] LXC and Docker together?

Andrey Repin anrdaemon at yandex.ru
Sat May 25 18:53:10 UTC 2019


Greetings, Richard Hector!

> I installed a new KVM with LXC in it, and added Docker ... it seems that
> Docker's default iptables rules do interfere with the way I set up
> bridges for LXC, but with a bit more head scratching, I think I'll be
> able to make it work :-)

Since I normally use macvlan bridge for LXC, it's hard to have iptables
configuration that would break LXC for me :)
Not to mention my everyday alias of

      xat(){
        if [ "$2" = "-u" ]; then
          _host="$1"
          shift 2
          if [ "$1" ]; then
            set -- "$_host" "$@"
          else
            set -- "$_host" "$USER"
          fi
        fi
        eval $(inscreen -t "LXC:$*") 'sudo lxc-attach -n "${1:-dc1}" -- su -l "${@:2}"'
      }; readonly -f xat

which does not involve networking at all to be able to reach into containers.


-- 
With best regards,
Andrey Repin
Saturday, May 25, 2019 21:51:30

Sorry for my terrible english...



More information about the lxc-users mailing list