###clear unused linux kernel image from /boot
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")
package main | |
import ( | |
"bytes" | |
"io" | |
"os" | |
"os/exec" | |
) | |
func main() { |
###clear unused linux kernel image from /boot
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")
This Gist demos how to make the inter communication between docker containers ( cross node)
###inter communication through Birdge
suppose there are two nodes n1: 192.168.1.1 and n2: 192.168.1.2, in the node n1 start container c1 and in the node n2 start container c2.
-------------------- ------------------------
| | | |
| -------- | | --------- |
##pull wnameless/oracle-xe-11g
$ sudo docker pull wnameless/oracle-xe-11g
##start the wnameless/oracle-xe-11g
$ sudo docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g
package com.nokia.nls.nmif; | |
import io.netty.bootstrap.Bootstrap; | |
import io.netty.buffer.ByteBuf; | |
import io.netty.channel.Channel; | |
import io.netty.channel.ChannelFuture; | |
import io.netty.channel.ChannelFutureListener; | |
import io.netty.channel.ChannelHandler; | |
import io.netty.channel.ChannelHandlerContext; | |
import io.netty.channel.ChannelInboundHandlerAdapter; |
###install openssh
$ sudo pacman -Sy openssh
$ sudo systemctl enable sshd
$ sudo systemctl start sshd
###enable DHCP