\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{geometry}
\geometry{top=15mm, bottom=15mm, left=1cm, right=1cm}
\usepackage[french]{babel}
\usepackage{pslatex}
\usepackage[colorlinks=true,urlcolor=black]{hyperref}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\footrulewidth}{0.4pt}
\fancyfoot[L]{Uubu.fr}
\fancyfoot[R]{dim. mars 13 17:13:28 CET 2016}
\lfoot{\Large \textit{Uubu.fr}}
\hypersetup{pdfinfo={
Title={docker-network-inspect},
Author={Sylvain Girod},
Creator={Bash script from uubu.fr's format version 1},
Producer={Bash script and PDFLaTeX},
Subject={Inspecter un réseau},
CreationDate={D:20160313171328},
ModDate={D:20160313171328},
Keywords={docker;containers;lxc}
}}
\begin{document}
 
\begin{center}
{\Huge docker-network-inspect }
\end{center}
\vspace{1cm}
 
\begin{flushleft}
 
{\large Inspecter un réseau}
 
\vspace{10mm}
 
\hspace{1mm} Retourne des informations sur un ou plusieurs réseaux. Par défaut, cette commande affiche le résultat dans un objet JSON. par exemple, si 2 conteneurs sont connectés à un réseau bridge: \\
\hspace{1mm} \textbf{sudo docker run -itd --name=container1 busybox} \\
\hspace{1mm} \textbf{f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27} \\
\hspace{1mm} \textbf{sudo docker run -itd --name=container2 busybox} \\
\hspace{1mm} \textbf{bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727} \\
 
\hspace{1mm} La commande inspect affiche les conteneurs, par id:
 
{\ttfamily
sudo docker network inspect bridge\\ \texttt{[}\\ \hspace{2mm}\{\\ \hspace{2mm}\hspace{2mm}"Name": "bridge",\\ \hspace{2mm}\hspace{2mm}"Id": "b2b1a2cba717161d984383fd68218cf70bbbd17d328496885f7c921333228b0f",\\ \hspace{2mm}\hspace{2mm}"Scope": "local",\\ \hspace{2mm}\hspace{2mm}"Driver": "bridge",\\ \hspace{2mm}\hspace{2mm}"IPAM": \{\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"Driver": "default",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"Config": \texttt{[}\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}\{\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm} "Subnet": "172.17.42.1/16",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm} "Gateway": "172.17.42.1"\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}\}\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\texttt{]}\\ \hspace{2mm}\hspace{2mm}\},\\ \hspace{2mm}\hspace{2mm}"Containers": \{\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"bda12f8922785d1f160be70736f26c1e331ab8aaf8ed8d56728508f2e2fd4727": \{\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"Name": "container2",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"EndpointID": "0aebb8fcd2b282abe1365979536f21ee4ceaf3ed56177c628eae9f706e00e019",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"MacAddress": "02:42:ac:11:00:02",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"IPv4Address": "172.17.0.2/16",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"IPv6Address": ""\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\},\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"f2870c98fd504370fb86e59f32cd0753b1ac9b69b7d80566ffc7192a82b3ed27": \{\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"Name": "container1",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"EndpointID": "a00676d9c91a96bbe5bcfb34f705387a33d7cc365bac1a29e4e9728df92d10ad",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"MacAddress": "02:42:ac:11:00:01",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"IPv4Address": "172.17.0.1/16",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}"IPv6Address": ""\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\}\\ \hspace{2mm}\hspace{2mm}\},\\ \hspace{2mm}\hspace{2mm}"Options": \{\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"com.docker.network.bridge.default\_bridge": "true",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"com.docker.network.bridge.enable\_icc": "true",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"com.docker.network.bridge.enable\_ip\_masquerade": "true",\\ \hspace{2mm}\hspace{2mm} "com.docker.network.bridge.host\_binding\_ipv4": "0.0.0.0",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"com.docker.network.bridge.name": "docker0",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"com.docker.network.driver.mtu": "1500"\\ \hspace{2mm}\hspace{2mm}\}\\ \hspace{2mm}\}\\ \texttt{]}\\
}
\vspace{8mm}
 
\hspace{1mm} Retourner les informations sur le réseau utilisateur:
 
{\ttfamily
docker network create simple-network\\ 69568e6336d8c96bbf57869030919f7c69524f71183b44d80948bd3927c87f6a\\ docker network inspect simple-network\\ \texttt{[}\\ \hspace{2mm}\{\\ \hspace{2mm}\hspace{2mm}"Name": "simple-network",\\ \hspace{2mm}\hspace{2mm}"Id": "69568e6336d8c96bbf57869030919f7c69524f71183b44d80948bd3927c87f6a",\\ \hspace{2mm}\hspace{2mm}"Scope": "local",\\ \hspace{2mm}\hspace{2mm}"Driver": "bridge",\\ \hspace{2mm}\hspace{2mm}"IPAM": \{\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"Driver": "default",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}"Config": \texttt{[}\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}\{\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm} "Subnet": "172.22.0.0/16",\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm} "Gateway": "172.22.0.1/16"\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\hspace{2mm}\}\\ \hspace{2mm}\hspace{2mm}\hspace{2mm}\texttt{]}\\ \hspace{2mm}\hspace{2mm}\},\\ \hspace{2mm}\hspace{2mm}"Containers": \{\},\\ \hspace{2mm}\hspace{2mm}"Options": \{\}\\ \hspace{2mm}\}\\ \texttt{]}\\
}
\vspace{8mm}
 
\vspace{1cm}{\huge OPTIONS }
 
\
 
\begin{description} \normalsize
\item[\hspace{1mm} -f, --format=""]{Formatte la sortie en utilisant le templace Go}
\end{description}
\end{flushleft}
\end{document}
