我试图使用Docker在Arch Linux服务器上运行Nginx。我创建了容器:
[
'attribute'=>'created_date',
'value' => function ($model, $index, $widget) {
$date = date('your date format eg.Y-m-d H:m:s', strtotime($model->created_date);
return date ;
},
'format' => ['date', 'php:d.m.Y'],
'filterType' => GridView::FILTER_DATE,
'filterWidgetOptions' => [
'pluginOptions' => [
'format' => 'yyyy-mm-dd',
'autoclose' => true,
'todayHighlight' => true,
]
],
'width' => '160px',
'hAlign' => 'center',
],
但是,当我尝试启动它时,出现[root@tronagon atc]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
nginx latest 5328fdfe9b8e 5 days ago 133.9 MB
[root@tronagon atc]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@tronagon atc]# docker create nginx
9842dcf58c17504c3723a6c0c0648e43c17e771d2b3fe315bde2e4979536fd09
错误:
System error: operation not permitted
docker守护程序肯定在运行:
[root@tronagon atc]# docker start 984
Error response from daemon: Cannot start container 984: [8] System error: operation not permitted
Error: failed to start containers: [984]
事实上,我无法运行任何容器:
[root@tronagon atc]# systemctl status docker
* docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2015-12-22 10:05:23 UTC; 1h 8min ago
Docs: https://docs.docker.com
Main PID: 908 (docker)
CGroup: /system.slice/docker.service
`-908 /usr/bin/docker daemon -H fd:// --exec-opt native.cgroupdriver=cgroupfs
有什么想法吗?
答案 0 :(得分:2)
原来我运行的是32位操作系统 - 在ARM v7 rev 10上运行Arch Linux - 容器是64位,这就是为什么我得到了exec错误。
通过默认的Arch Linux ARM存储库中的docker安装,可以获得一些ARM等效映像。运行以下命令以查找它们:
docker search armhf