<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Docker &#8211; 老丁的博客</title>
	<atom:link href="https://www.laoding.me/archives/tag/docker/feed" rel="self" type="application/rss+xml" />
	<link>https://www.laoding.me</link>
	<description></description>
	<lastBuildDate>Wed, 02 Oct 2024 06:11:23 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://public-123.oss-cn-guangzhou.aliyuncs.com/2024/09/cropped-图片_20240927133356-768x768-1-32x32.jpg</url>
	<title>Docker &#8211; 老丁的博客</title>
	<link>https://www.laoding.me</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>docker 常用命令</title>
		<link>https://www.laoding.me/archives/633</link>
					<comments>https://www.laoding.me/archives/633#respond</comments>
		
		<dc:creator><![CDATA[laoding]]></dc:creator>
		<pubDate>Wed, 02 Oct 2024 05:51:02 +0000</pubDate>
				<category><![CDATA[办公网络]]></category>
		<category><![CDATA[Docker]]></category>
		<guid isPermaLink="false">https://www.laoding.me/?p=633</guid>

					<description><![CDATA[1.查看已安装的docker yum list installed&#124;grep docker 2.卸载查询出来的 [&#8230;]]]></description>
										<content:encoded><![CDATA[<h4>1.查看已安装的docker</h4>
<pre><code>yum list installed|grep docker</code></pre>
<p><img decoding="async" src="https://www.laoding.me/wp-content/media/202312/微信截图_20231204131829_1701670725.jpg" alt="" title="查看已安装的docker" /></p>
<h4>2.卸载查询出来的docker</h4>
<p>根据上面查询出来 如有多个就写多次</p>
<pre><code>yum remove containerd.io.x86_64</code></pre>
<pre><code>yum remove docker*</code></pre>
<h4>3.删除容器镜像文件</h4>
<pre><code>rm -rf /var/lib/docke</code></pre>
<h4>3. 更新yum</h4>
<pre><code>sudo yum update</code></pre>
<pre><code>sudo yum install -y yum-utils device-mapper-persistent-data lvm2</code></pre>
<h4>4. 安装docker</h4>
<pre><code>sudo yum install -y docker-ce</code></pre>
<h4>5.  查看docker是否安装成功</h4>
<pre><code>docker -v</code></pre>
<h4>6.  设置目录</h4>
<pre><code>mkdir /etc/docker</code></pre>
<h4>7.  编辑文件</h4>
<pre><code>vi /etc/docker/daemon.json</code></pre>
<h4>8.  插入内容</h4>
<pre><code>{
&quot;registry-mirrors&quot;: [&quot;https://docker.mirrors.ustc.edu.cn&quot;]
}</code></pre>
<h4>9.  启动与停止docker</h4>
<pre><code>//启动docker服务
systemctl start docker
//停止docker服务
systemctl stop docker</code></pre>
<h4>10.查看状态与重启</h4>
<pre><code>//重启docker服务
systemctl restart docker
//查看docker状态：
systemctl status docker</code></pre>
<h4>11.  开机自启动docker服务：</h4>
<pre><code>systemctl enable docker</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.laoding.me/archives/633/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
