-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker_cheat_data.html
229 lines (218 loc) · 8.14 KB
/
docker_cheat_data.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<!DOCTYPE HTML>
<!--
Phantom by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Docker Command Cheat Sheet</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="inner">
<!-- Logo -->
<a href="index.html" class="logo">
<span class="symbol"><img src="images/NeuroNestLogo.png" alt="NeuroNest Logo" /></span><span class="title">NeuroNest</span>
</a>
<!-- Nav -->
<nav>
<ul>
<li><a href="#menu">Menu</a></li>
</ul>
</nav>
</div>
</header>
<!-- Menu -->
<nav id="menu">
<h2>Menu</h2>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="resource_menu.html">Resources</a></li>
<li><a href="https://sopkoc.wixsite.com/neuronest/forum">Ask a Question</a></li>
<li><a href="https://sopkoc.wixsite.com/neuronest/about">About NeuroNest</a></li>
<li><a href="https://sopkoc.wixsite.com/neuronest/contact">Contact</a></li>
</ul>
</nav>
<!-- Main -->
<div id="main">
<div class="inner">
<h1>Docker Command Cheat Sheet</h1>
<table>
<thead>
<tr>
<th>Command</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>docker --help</code></td>
<td>To get help from Docker CLI.</td>
</tr>
<tr>
<td><code>docker -d</code></td>
<td>To start the Docker daemon.</td>
</tr>
<tr>
<td><code>docker info</code></td>
<td>To display Docker system-wide information.</td>
</tr>
<tr>
<td><code>docker version</code></td>
<td>To display the current installed Docker version.</td>
</tr>
<tr>
<td colspan="2"><h2>Docker Hub Commands</h2></td>
</tr>
<tr>
<td colspan="2">Docker Hub is a service provided by Docker that hosts container images. You can download and even push your own images in Docker Hub, making it accessible to everyone connected to the service.</td>
</tr>
<tr>
<td><code>docker login -u <username></code></td>
<td>To login into Docker.</td>
</tr>
<tr>
<td><code>docker push <username>/<image_name></code></td>
<td>To publish an image to Docker Hub.</td>
</tr>
<tr>
<td><code>docker search <image_name></code></td>
<td>To search for an image in Docker Hub.</td>
</tr>
<tr>
<td><code>docker pull <image_name></code></td>
<td>To pull an image from the Docker Hub.</td>
</tr>
<tr>
<td colspan="2"><h2>Docker Images Commands</h2></td>
</tr>
<tr>
<td colspan="2">The following commands allow you to work with Docker images.</td>
</tr>
<tr>
<td><code>docker build</code></td>
<td>To build an image from a Dockerfile.</td>
</tr>
<tr>
<td><code>docker commit <container_name></code></td>
<td>To create a new image from a container’s changes.</td>
</tr>
<tr>
<td><code>docker history <container_name></code></td>
<td>To show the history of an image.</td>
</tr>
<tr>
<td><code>docker images</code></td>
<td>To list images.</td>
</tr>
<tr>
<td><code>docker import</code></td>
<td>To import the contents from a tarball to create a filesystem image.</td>
</tr>
<tr>
<td><code>docker load</code></td>
<td>To load an image from a tar archive or STDIN.</td>
</tr>
<tr>
<td><code>docker rmi <container_name></code></td>
<td>To remove one or more images.</td>
</tr>
<tr>
<td><code>docker save <container_name></code></td>
<td>To save images to a tar archive or STDOUT.</td>
</tr>
<tr>
<td><code>docker tag</code></td>
<td>To tag an image into a repository.</td>
</tr>
<tr>
<td colspan="2"><h2>Docker Container Commands</h2></td>
</tr>
<tr>
<td colspan="2">Managing containers is a day-to-day activity of DevOps teams. Here is a list of Docker commands to manage containers.</td>
</tr>
<tr>
<td><code>docker run --name <container_name> <image_name></code></td>
<td>To create and run a container from an image.</td>
</tr>
<tr>
<td><code>docker run -p <host_port>:<container_port> <image_name></code></td>
<td>To run a container with port mapping.</td>
</tr>
<tr>
<td><code>docker run -d <image_name></code></td>
<td>To run a container in the background.</td>
</tr>
<tr>
<td><code>docker start|stop <container_name></code></td>
<td>To start or stop an existing container.</td>
</tr>
<tr>
<td><code>docker rm <container_name></code></td>
<td>To remove a stopped container.</td>
</tr>
<tr>
<td><code>docker exec -it <container_name> sh</code></td>
<td>To open a shell inside a running container.</td>
</tr>
<tr>
<td><code>docker logs -f <container_name></code></td>
<td>To fetch and follow the logs of a container.</td>
</tr>
<tr>
<td><code>docker inspect <container_name></code></td>
<td>To inspect a running container.</td>
</tr>
<tr>
<td><code>docker ps</code></td>
<td>To list currently running containers.</td>
</tr>
<tr>
<td><code>docker ps -a</code></td>
<td>To list all Docker containers.</td>
</tr>
<tr>
<td><code>docker container stats</code></td>
<td>To view resource usage stats.</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Footer -->
<footer id="footer">
<div class="inner">
<section>
<h2>Funding</h2>
<p> We would like to express our heartfelt gratitude to <strong>Neurohackademy</strong> at the <strong>University of Washington eScience Institute</strong> for providing invaluable training and support. This experience has significantly enriched our understanding of neuroimaging and data science. We also acknowledge the support of the National Institute of Mental Health (NIMH) grant number <strong>5R25MH112480-08</strong>, which made this opportunity possible.</p>
</section>
<section>
<h2>Follow</h2>
<ul class="icons">
<li><a href="https://x.com/Neuro_Nest" class="icon brands style2 fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="https://github.com/NeuroHackademy2024/NeuroNest" class="icon brands style2 fa-github"><span class="label">GitHub</span></a></li>
<li><a href="https://sopkoc.wixsite.com/neuronest/contact" class="icon solid style2 fa-envelope"><span class="label">Email</span></a></li>
</ul>
</section>
<ul class="copyright">
<li>© Untitled. All rights reserved</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>