\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{KyleK29} \pdfinfo{ /Title (docker-basics-english.pdf) /Creator (Cheatography) /Author (KyleK29) /Subject (Docker Basics - English Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{0DB7ED} \definecolor{LightBackground}{HTML}{EFFAFD} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Docker Basics - English Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{KyleK29} via \textcolor{DarkBackground}{\uline{cheatography.com/159276/cs/38721/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}KyleK29 \\ \uline{cheatography.com/kylek29} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 15th May, 2023.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Basic Docker Commands}} \tn % Row 0 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker ps}}` & List of started containers \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker ps-a}}` & List of all containers \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{dockerinfo}}` & Get configuration from docker \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker version}}` & Get docker version \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker build -t}}``{\emph{\textless{}image\textgreater{}:\textless{}tag\textgreater{} .}}` & Builds a Docker image from a "Dockerfile" or a container. \tn % Row Count 11 (+ 3) % Row 5 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker login}}``{\emph{\textless{}repository\textgreater{}}}` & Connect to a remote repository \tn % Row Count 14 (+ 3) % Row 6 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker push}}``{\emph{\textless{}image\_name\textgreater{}:\textless{}tag\textgreater{}}}` & Push the image to the remote repository \tn % Row Count 17 (+ 3) % Row 7 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker pull}}``{\emph{\textless{}image\_name\textgreater{}:\textless{}tag\textgreater{}}}` & Pull image from remote repository \tn % Row Count 20 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Container Orders}} \tn % Row 0 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker inspect}} {\emph{\textless{}Container\textgreater{}}}` & Controls a container \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker stats}} {\emph{\textless{}Container\textgreater{}}}` & Displays the container's live data stream \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker logs}} {\emph{\textless{}Container\textgreater{}}}` & Fetch container logs \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker run}} {\emph{\textless{}Container\textgreater{}}}` & Run the container \tn % Row Count 12 (+ 3) % Row 4 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker kill}} {\emph{\textless{}Container\textgreater{}}}` & Kill a running container \tn % Row Count 15 (+ 3) % Row 5 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker start}} {\emph{\textless{}Container\textgreater{}}}` & Start the container \tn % Row Count 18 (+ 3) % Row 6 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker stop}} {\emph{\textless{}Container}}` & Stop a running container \tn % Row Count 21 (+ 3) % Row 7 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker restart}} {\emph{\textless{}Container\textgreater{}}}` & Restart the container \tn % Row Count 24 (+ 3) % Row 8 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker rm}} {\emph{\textless{}Container\textgreater{}}}` & Delete the container \tn % Row Count 26 (+ 2) % Row 9 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker port}} {\emph{\textless{}Container\textgreater{}}}` & List container port mapping \tn % Row Count 29 (+ 3) % Row 10 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker break}} {\emph{\textless{}Container\textgreater{}}}` & Suspend all container processes \tn % Row Count 32 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Container Orders (cont)}} \tn % Row 11 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker unpause}} {\emph{\textless{}Container\textgreater{}}}` & Unsuspend all container processes \tn % Row Count 3 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{\{\{ac\}\}`{\emph{\textless{}Container\textgreater{}}} can be replaced by the``{\bf{ID}} or the {\bf{NAME}} of the container.`} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Network Commands}} \tn % Row 0 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker network ls}}` & List of networks \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker network inspect`}} {\emph{`\textless{}Network\textgreater{}}}` & Check network information \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker network create`}} {\emph{`\textless{}Network\textgreater{}}}` & Create a network \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker network rm`}} {\emph{`\textless{}Network\textgreater{}}}` & Delete a network \tn % Row Count 11 (+ 3) % Row 4 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker network connect`}} {\emph{`\{\{nl\}\}~~~~~~~~~\textless{}Network\textgreater{} \textless{}Container\textgreater{}}}` & Connects a container to the network \tn % Row Count 18 (+ 7) % Row 5 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker network connect -{}-ip}} {\emph{\{\{nl\}\}~~~~~~~~~\textless{}IP\textgreater{} \textless{}Network\textgreater{} \textless{}Container\textgreater{}}}` & Specifies the container interface IP address \tn % Row Count 25 (+ 7) % Row 6 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker network disconnect}} {\emph{\{\{nl\}\}~~~~~~~~~\textless{}Network\_Name\textgreater{} \textless{}Container\textgreater{}}}` & Disconnects the container from the network \tn % Row Count 32 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{\{\{ac\}\}`{\emph{\textless{}Network\textgreater{}}} can be replaced by the network {\bf{ID}} or {\bf{NAME}}.`} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4.08 cm} x{3.92 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Miscellaneous Commands}} \tn % Row 0 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker cp}} \{\{nl\}\}~~~~~~{\emph{\textless{}Container\textgreater{}:\textless{}source\_path\textgreater{} \textless{}dest\_path\textgreater{}}}` & Copy from container to host \tn % Row Count 6 (+ 6) % Row 1 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker cp}} \{\{nl\}\}~~~~~~{\emph{\textless{}source\_path\textgreater{} \textless{}Container\textgreater{}:\textless{}dest\_path\textgreater{}}}` & Copy from host to container \tn % Row Count 12 (+ 6) % Row 2 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker exec -ti}} \{\{nl\}\}~~~~~~{\emph{\textless{}Container\textgreater{} \textless{}Entrypoint\textgreater{}}}` & Runs the terminal from a live container \tn % Row Count 18 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Dockerfile}} \tn % Row 0 \SetRowColor{LightBackground} `\{\{lang-Dockerfile\}\}{\bf{FROM}} {\emph{\textless{}image\textgreater{}:\textless{}tag\textgreater{}}}` & Specifies the parent image \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} `\{\{lang-Dockerfile\}\}{\bf{COPY}} {\emph{\textless{}source\_path\textgreater{} \textless{}destination\_path\textgreater{}}}` & Copies regular files and directories. \tn % Row Count 7 (+ 4) % Row 2 \SetRowColor{LightBackground} `\{\{lang-Dockerfile\}\}{\bf{ADD}} {\emph{\textless{}source\_path\textgreater{} \textless{}destination\_path\textgreater{}}}` & Same as `COPY`, but unpacks tarballs and accepts URLs \tn % Row Count 11 (+ 4) % Row 3 \SetRowColor{white} `\{\{lang-Dockerfile\}\}{\bf{CMD}} {\emph{{[}\textless{}command\textgreater{} \textless{}parameters\textgreater{}{]}}}` & Specifies the command to execute when initializing the container with this image \tn % Row Count 15 (+ 4) % Row 4 \SetRowColor{LightBackground} `\{\{lang-Dockerfile\}\}{\bf{ENTRYPOINT}} {\emph{{[}\textless{}command\textgreater{} \textless{}parameters\textgreater{}{]}}}` & Similar to `CMD` but cannot be overwritten, it will always be executed and the container will run as an executable \tn % Row Count 21 (+ 6) % Row 5 \SetRowColor{white} `\{\{lang-Dockerfile\}\}{\bf{LABEL}} {\emph{\textless{}key\textgreater{}=\textless{}value\textgreater{}}}` & Adds metadata to the Docker image \tn % Row Count 24 (+ 3) % Row 6 \SetRowColor{LightBackground} `\{\{lang-Dockerfile\}\}{\bf{ENV}} {\emph{\textless{}key\textgreater{}=\textless{}value\textgreater{}}}` & Sets environment variables for the container \tn % Row Count 27 (+ 3) % Row 7 \SetRowColor{white} `\{\{lang-Dockerfile\}\}{\bf{EXPOSE}} {\emph{\textless{}port\_number\textgreater{}/\textless{}protocol\_type\textgreater{}}}` & Sets the ports that will be exposed by the container \tn % Row Count 31 (+ 4) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Dockerfile (cont)}} \tn % Row 8 \SetRowColor{LightBackground} `\{\{lang-Dockerfile\}\}{\bf{RUN}} {\emph{\textless{}commands\textgreater{}}}` & Runs commands in the container; usually used to install packages \tn % Row Count 4 (+ 4) % Row 9 \SetRowColor{white} `\{\{lang-Dockerfile\}\}{\bf{WORKDIR}} {\emph{\textless{}directory\_path\textgreater{}}}` & Specifies the working directory. Once the container is executed, this is the directory we will end up in when we access the container. \tn % Row Count 11 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.68 cm} x{4.32 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Option Keywords}} \tn % Row 0 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{-p, -{}-publish}}` & Port mapping between host and container \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{-{}-publish-all}}` & Publish all ports \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{-{}-exposed}}` & Exposes the port of the container \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{-d, -{}-detach}}` & Runs in the background \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{-e, -{}-env}}` & Sets environment variables \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{-v, -{}-volume}}` & Mount files or directories \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{-i, -{}-interactive}}` & Provides access to a command prompt in a running container \tn % Row Count 15 (+ 3) % Row 7 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{`\{\{lang-sh\}\}{\bf{-t, -{}-tty}}`} \tn % Row Count 16 (+ 1) % Row 8 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{executive}}` & Execute a new command in a container \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{pc}}` & Copy data between container and host or vice versa \tn % Row Count 21 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{\{\{ac\}\}`\{\{lang-sh\}\}These option keywords can be added to most docker commands.`} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4.32 cm} x{3.68 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Image Commands}} \tn % Row 0 \SetRowColor{LightBackground} \{\{width=60\}\}`\{\{lang-sh\}\}{\bf{docker pictures}}` & Lists locally available images \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker run}}``~{\emph{\textless{}image\textgreater{}}}` & Run the image \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker create}}``{\emph{\textless{}image\textgreater{}:\textless{}Tag\textgreater{}}}` & Create an image \tn % Row Count 9 (+ 3) % Row 3 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker rmi}}``{\emph{\textless{}image\textgreater{}}}` & Delete the image \tn % Row Count 11 (+ 2) % Row 4 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker save}}``~{\emph{\textless{}image\textgreater{}}}` & Save images to a tarball \tn % Row Count 14 (+ 3) % Row 5 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker search}}``~{\emph{\textless{}image\textgreater{}}}` & Docker image search \tn % Row Count 17 (+ 3) % Row 6 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker sweater}}``~{\emph{\textless{}image\textgreater{}}}` & Get a docker image \tn % Row Count 20 (+ 3) % Row 7 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker build -t}}`\{\{nl\}\}`~{\emph{\textless{}image\textgreater{}:\textless{}tag\textgreater{} \textless{}run\_directory\textgreater{} -f \textless{}dockerfile\textgreater{}}}` & Build an image from a "dockerfile" \tn % Row Count 25 (+ 5) % Row 8 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{plum image docker}}` & Remove all unused docker images \tn % Row Count 27 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{5.28 cm} x{2.72 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Volume Commands}} \tn % Row 0 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker volume ls}}` & List the volumes \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker volume inspect}} {\emph{\textless{}Volume\textgreater{}}}` & Control the volume \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker volume create}} {\emph{\textless{}Volume\textgreater{}}}` & Create a volume \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker volume rm}} {\emph{\textless{}Volume\textgreater{}}}` & Delete a volume \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{plum volume docker}}` & Delete unused volumes \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{\{\{ac\}\}`\{\{lang-sh\}\}{\emph{\textless{}Volume\textgreater{}}} can be replaced by volume {\bf{ID}} or {\bf{NAME}}.`} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Repair \& Diagnostics}} \tn % Row 0 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker system df}}` & Show disk space used by docker \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker system info}}` & Displays Docker system information \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker diff}} {\emph{\textless{}container\textgreater{}}}` & Shows all files that have been modified since startup \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker top}} {\emph{\textless{}container\textgreater{}}}` & Show "top" command output of processes running in a container \tn % Row Count 11 (+ 4) % Row 4 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker stats}}` & Show output of "top" command from all Docker containers \tn % Row Count 14 (+ 3) % Row 5 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker logs}} {\emph{\textless{}container\textgreater{}}}` & Show container logs \tn % Row Count 17 (+ 3) % Row 6 \SetRowColor{LightBackground} `\{\{lang-sh\}\}{\bf{docker top}} {\emph{\textless{}container\textgreater{}}}` & Show the processes in container \tn % Row Count 20 (+ 3) % Row 7 \SetRowColor{white} `\{\{lang-sh\}\}{\bf{docker diff}} {\emph{\textless{}container\textgreater{}}}` & Show all modified files in the container \tn % Row Count 23 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.8 cm} p{0.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Test Block - v1.00}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}