Docker开启实验特性

Posted 行歌天涯

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker开启实验特性相关的知识,希望对你有一定的参考价值。



编辑~/.docker/config.json

  • 开启Docker CLI的实验特性

  • 新增条目

{
    "experimental": "enabled"
}
[root@avatar ~]# cat .docker/config.json
{
	"auths": {
		"https://index.docker.io/v1/": {
			"auth": "bGlqMTI4ODphc2RsajE5OTM="
		}
	},
	"experimental": "enabled"
}
  • 注:config.json在login后生成
[root@avatar ~]# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don\'t have a Docker ID, head over to https://hub.docker.com to create one.
Username: lij1288
Password: 
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
[root@avatar ~]# cat .docker/config.json
{
	"auths": {
		"https://index.docker.io/v1/": {
			"auth": "bGlqMTI4ODphc2RsajE5OTM="
		}
	}
}

编辑/etc/docker/daemon.json

  • 开启Dockerd的实验特性

  • 新增条目

{
    "experimental": true
}
[root@avatar ~]# cat /etc/docker/daemon.json
{
    "registry-mirrors": [
    "https://mirror.baidubce.com",
    "https://docker.mirrors.ustc.edu.cn/"
    ],
    "experimental": true
}

重新加载配置文件

sudo systemctl daemon-reload

重启Docker

sudo systemctl restart docker

验证开启结果

docker info | grep Experimental
[root@avatar ~]# docker info | grep Experimental
 Experimental: true

以上是关于Docker开启实验特性的主要内容,如果未能解决你的问题,请参考以下文章

SAAS 开发技术项目实验

实验第二期:ClustersDRSHA特性

201555332盛照宗—网络对抗实验1—逆向与bof基础

Docker删除报错:Error response from daemon: conflict: unable to delete 08b152afcfae (must be forced)(代码片段

20155201 李卓雯 《网络对抗技术》实验一 逆向及Bof基础

docker部署lnmp-wordpress