Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{article}
- usepackage{color}
- usepackage{listings}
- usepackage[justification=centering]{caption}
- lstdefinestyle{SC}{
- language=erlang,
- xleftmargin=.2textwidth,
- xrightmargin=.2textwidth
- }
- lstset{
- numbers=left,
- numberstyle=tiny,
- basicstyle=scriptsize,
- showstringspaces=false,
- showspaces=false,
- commentstyle=color{blue},
- keywordstyle=bfseriescolor{purple},
- captionpos=t,
- frame=lines
- }
- begin{document}
- begin{lstlisting}[style=SC, caption={test}]
- % Stop all containers
- docker stop $(docker ps -a -q)
- % Delete all containers
- docker rm $(docker ps -a -q)
- % Delete all images
- docker rmi $(docker images -q)
- end{lstlisting}
- end{document}
Add Comment
Please, Sign In to add comment