我在上的中托管一个Docker映像。为了部署我的容器,我执行以下操作:
gcloud compute instances update-container example --container-image "$IMAGE_WITH_TAG"
在最近的部署中,我得到了以下错误:
failed to register layer: Error processing tar file(exit status 1): write /usr/share/man/man1/journalctl.1.gz: no space left on device
在SSHing进入我的Docker
我使用wordpress和mariadb在docker for Windows上使用compose创建了两个Docker容器。我已经为wordpress创建了一个卷,它指向我的PC的普通文件系统,但mariaDB的文件系统仍然包含在Hyper-V的虚拟硬盘中。
挂载点在/var/lib/docker/volumes/1995...ca3/_data,我已经尝试查看过前面的答案,但是解释如何备份、复制或恢复卷的链接是。我见过的大多数Docker插件或脚本通常指的是*nix环境。
有人知道在Docker for Windows中导出和导入装载到Linux容器的卷的现代方法吗?
我在本地运行GitLab和Gitlab-Runner docker实例。当Spring Boot和Maven项目管道被执行时,我得到下面的错误。 Getting source from Git repository
00:02
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/root/starter-springboot-pipeline/.git/
fatal: unable to access 'http://localhost/roo
我正在尝试通过Docker Toolbox在Windows上使用Docker,但我正在努力使其正常工作。我已经拉取了Docker的PHP镜像。例如,这个简单的ls命令会失败:
$ docker run -it --rm -v /$(pwd):/home/projects php:7.0-cli ls -l /home/projects
ls: cannot open directory /home/projects: Operation not permitted
此外,已装载卷中的任何其他操作都会失败,并显示Operation not permitted消息。
docker-compose.yml
db:
image: mongo:3
volumes:
- ./mongo_data:/data/db
这在本地工作,文件存储在主机上的/data/db中。
在macOS上使用docker-machine时,我得到以下错误:
db_1 | 2017-02-03T10:16:14.839+0000 I STORAGE [initandlisten] exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /dat
根据 Docker卷的广告方式:
卷是持久化由Docker容器生成和使用的数据的首选机制。绑定挂载依赖于主机的目录结构和操作系统,而卷则完全由Docker管理。
但是如果它们很好,为什么没有像这样的操作来管理它们:复制,重命名
命令:
docker volume --help
只提供以下选项:
Usage: docker volume COMMAND
Manage volumes
Commands:
create Create a volume
inspect Display detailed information on one or more vol