++stufffffffff
This commit is contained in:
		
					parent
					
						
							
								af1c79de0e
							
						
					
				
			
			
				commit
				
					
						da90e6de1e
					
				
			
		
					 2 changed files with 86 additions and 4 deletions
				
			
		|  | @ -66,11 +66,19 @@ consumption and also the grey energy is minimised. The team of | ||||||
| products that are built with sustainability in mind: | products that are built with sustainability in mind: | ||||||
| 
 | 
 | ||||||
| * [Sustainable Data Storage: Glarnercloud](https://glarnercloud.ch) | * [Sustainable Data Storage: Glarnercloud](https://glarnercloud.ch) | ||||||
| * [Sustainable Virtual Private Servers](https://datacenterlight.ch) | * [Sustainable Virtual Private Servers: Data Center Light](https://datacenterlight.ch) | ||||||
| * [Sustainable IPv6 only VPS](https://ipv6onlyhosting.com/) | * [Sustainable IPv6 only VPS: IPv6 Only Hosting](https://ipv6onlyhosting.com/) | ||||||
| * [Sustainable IPv6 VPNs](https://ipv6vpn.ch) | * [Sustainable IPv6 VPNs: IPv6VPN](https://ipv6vpn.ch) | ||||||
| * [Sustainable IPv6 Backup](https://ungleich.ch/en-us/cms/ipv6-backup/) | * [Sustainable IPv6 Backup](https://ungleich.ch/en-us/cms/ipv6-backup/) | ||||||
| 
 | 
 | ||||||
| If you have any questions about it, you can reach us at | In our opinion, we can only reach sustainability, if we take actions | ||||||
|  | in all fields of our daily life. | ||||||
|  | 
 | ||||||
|  | In case you are looking for an affordable way of testing the products, | ||||||
|  | you should not miss the [Black IPv6 | ||||||
|  | Friday](https://swiss-crowdfunder.com/campaigns/black-ipv6-friday?locale=en), | ||||||
|  | which has *up to 50% discount on the products*. | ||||||
|  | 
 | ||||||
|  | If you have any questions or comemnts, you can reach us at | ||||||
| **sustainability at ungleich.ch** or in the [ungleich | **sustainability at ungleich.ch** or in the [ungleich | ||||||
| chat](https://chat.ungleich.ch). | chat](https://chat.ungleich.ch). | ||||||
|  |  | ||||||
|  | @ -0,0 +1,74 @@ | ||||||
|  | title: How to run world reachable docker containers on your notebook | ||||||
|  | --- | ||||||
|  | pub_date: 2019-11-20 | ||||||
|  | --- | ||||||
|  | author: Nico Schottelius | ||||||
|  | --- | ||||||
|  | twitter_handle: NicoSchottelius | ||||||
|  | --- | ||||||
|  | _hidden: no | ||||||
|  | --- | ||||||
|  | _discoverable: yes | ||||||
|  | --- | ||||||
|  | abstract: | ||||||
|  | With IPv6, you can do so many things faster than before | ||||||
|  | --- | ||||||
|  | body: | ||||||
|  | 
 | ||||||
|  | Today [Alain](https://github.com/munen/) | ||||||
|  | from [200ok](https://200ok.ch/) and me were hacking in the | ||||||
|  | [Hacking Hotel Diesbach](https://hack.digitalglarus.ch/) and found an | ||||||
|  | interesting problem: the docker containers on Alain's notebook did not | ||||||
|  | reach the Internet. | ||||||
|  | 
 | ||||||
|  | ## IPv6 only networks | ||||||
|  | 
 | ||||||
|  | It turns out that here in the Hacking Hotel, we are in an IPv6 only | ||||||
|  | network and docker by default assigns IPv4 addresses to | ||||||
|  | containers. This obviously does not work, because there is no IPv4 | ||||||
|  | connectivity in an IPv6 only network... | ||||||
|  | 
 | ||||||
|  | ## Turning the problem into a feature | ||||||
|  | 
 | ||||||
|  | ...being in the Hacking Hotel means being inside the | ||||||
|  | *2a0a:e5c0:10::/48* network. The nice thing about IPv6 is that you | ||||||
|  | have a lot of space. With the /48 network, we have around 65'536 /64 | ||||||
|  | sub networks. But enough from the IPv6 love... | ||||||
|  | 
 | ||||||
|  | ... what this means is that we can just route a /64 network to Alain's | ||||||
|  | notebook and reconfigure his docker daemon to use IPv6 instead of | ||||||
|  | IPv4. Simply creating the **/etc/docker/daemon.json** with the | ||||||
|  | following content is enough: | ||||||
|  | 
 | ||||||
|  | ```json | ||||||
|  | { | ||||||
|  |   "ipv6": true, | ||||||
|  |   "fixed-cidr-v6": "2a0a:e5c0:10:f00::/64" | ||||||
|  | } | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | This is great, as long as we work in the Hacking Hotel... | ||||||
|  | 
 | ||||||
|  | ## And turning it into a demo ready state | ||||||
|  | 
 | ||||||
|  | The problem with our solution above is that the network is only routed | ||||||
|  | to his notebook, when he is in the Hacking Hotel and it will not work | ||||||
|  | outside. | ||||||
|  | 
 | ||||||
|  | Luckily he also has a VPN from [IPv6VPN.ch](https://IPv6VPN.ch) that | ||||||
|  | gives him a static /48 network to his notebook. Now we selected a | ||||||
|  | /64 subnet and what does it give? | ||||||
|  | 
 | ||||||
|  | **World wide reachable docker containers** on a notebook! | ||||||
|  | 
 | ||||||
|  | Isn't that sweet? Given the right firewall settings, the containers | ||||||
|  | can now be reached from anywhere in the world. From a notebook, which | ||||||
|  | can be anywhere else in the world. | ||||||
|  | 
 | ||||||
|  | ## More of this | ||||||
|  | 
 | ||||||
|  | If you like hacking with IPv6, or to reproduce the docker setup above, | ||||||
|  | you are invited to join the  [IPv6 Chat](https://IPv6.chat) | ||||||
|  | or to get yourself a 50% off deal on the [Black IPv6 | ||||||
|  | Friday](https://swiss-crowdfunder.com/campaigns/black-ipv6-friday?locale=en) | ||||||
|  | campaign. | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue