IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

Linux下(centos7)Docker安装

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

参考链接https://docs.docker.com/install/linux/docker-ce/centos/

第一步,确定是centos7及以上版本

cat /etc/redhat-release

CentOS Linux release 7.4.1708 (Core)

第二步,yum安装gcc相关

确定centos7可以上外网
yum -y install gcc
yum -y install gcc-c++

安装完成之后,查看gcc版本
gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) 


第三步,卸载旧版本

sudo yum remove docker \
          docker-client \
          docker-client-latest \
          docker-common \
          docker-latest \
          docker-latest-logrotate \
          docker-logrotate \
          docker-engine

\是连接符

第四步,安装需要的软件包

sudo yum install -y yum-utils \
  device-mapper-persistent-data \
  lvm2

第五步设置stable镜像库

# 官方推荐
sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo

# 实际推荐
sudo yum yum-config-manager --add-repo http://mirrors.aliyun.com/cloer-re/linux/centos/docker-re.repo

第六步更新yum软件包索引

yum makecache fast

第七步安装docker ce

# 官网
sudo yum -y install docker-ce docker-ce-cli containerd.io

# 尚硅谷
yum -y install docker-ce

第八步启动docker

sudo systemctl start docker

第九步测试

docker version

docer run hello-world

第十步配置镜像加速

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json

# daemon.json中的内容
{
  "registry-mirrors": ["https://eu2u8bif.mirror.aliyuncs.com"]
}
# 重新加载daemon.json
sudo systemctl daemon-reload
# 重启docker
sudo systemctl restart docker

第十一步卸载

# 停止docker
systemctl stop docker
# 移除docker
sudo yum -y remove docker-ce
# 移除所有容器/镜像/数据卷
sudo rm -rf /var/lib/docker

文章永久链接:https://tech.souyunku.com/?p=46386


Warning: A non-numeric value encountered in /data/wangzhan/tech.souyunku.com.wp/wp-content/themes/dux/functions-theme.php on line 1154
赞(68) 打赏



未经允许不得转载:搜云库技术团队 » Linux下(centos7)Docker安装

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码
IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

评论 抢沙发

大前端WP主题 更专业 更方便

联系我们联系我们

觉得文章有用就打赏一下文章作者

微信扫一扫打赏

微信扫一扫打赏


Fatal error: Uncaught Exception: Cache directory not writable. Comet Cache needs this directory please: `/data/wangzhan/tech.souyunku.com.wp/wp-content/cache/comet-cache/cache/https/tech-souyunku-com/index.q`. Set permissions to `755` or higher; `777` might be needed in some cases. in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php:367 Stack trace: #0 [internal function]: WebSharks\CometCache\Classes\AdvancedCache->outputBufferCallbackHandler() #1 /data/wangzhan/tech.souyunku.com.wp/wp-includes/functions.php(5109): ob_end_flush() #2 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(303): wp_ob_end_flush_all() #3 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /data/wangzhan/tech.souyunku.com.wp/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /data/wangzhan/tech.souyunku.com.wp/wp-includes/load.php(1097): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php on line 367