在我的 ubuntu 18 机器上,我无法运行 localstack 的最新 docker 镜像。即使结束消息显示为“就绪”,我仍然无法使用以下命令访问它。
awslocal --endpoint-url=http://localhost:4575 sns list-topics
Could not connect to the endpoint URL: "http://localhost:4575/"
Run Code Online (Sandbox Code Playgroud)
docker run localstack/localstack 还显示错误: [Errno 13] Permission returned: '/tmp/localstack/server.test.pem.key'
docker run localstack/localstack
Waiting for all LocalStack services to be ready
2020-04-09 04:28:19,502 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message. …Run Code Online (Sandbox Code Playgroud) 我是docker和的新手docker-compose。我将 docker-compose 文件与多个服务一起使用。使用 docker-compose 时,我在本地计算机上有容器和图像,我的任务是将它们传递到远程主机。
我已经确定了几种解决方案:
tar文件并将其加载到远程主机上。我发现这篇文章,建议在这种情况下使用 shell 脚本。或者,我可以直接使用 docker ,但这样做意味着失去 docker-compose 的好处。general。但是,在这种情况下,我只能从一台机器进行部署,或者我需要配置证书。对我来说这似乎不是一个简单的解决方案。docker-compose push(docs)到远程主机,但为此,我需要在远程主机上创建一个注册表,并且每次都必须添加主机名并将其作为参数传递给 docker-compose 。将 Docker 容器部署到远程主机的推荐最佳实践是什么?
我需要从虚拟框映像创建泊坞窗的映像。文件大小为 16GB。当我运行命令行时# tar -c . | docker import - <myImagename>出现以下错误。
PS:容器是空的。
错误:
来自守护进程的错误响应:处理 tar 文件时出错(退出状态 1):写入 /var/lib/docker/overlay2/f8bb15057c3b3578c13e1122be1d00ca72b3301b7a0bf27262edc759e9f207fb/diff/var/lib/docker/overlay2/f8bb15057c3b3578c13e1 122be1d00ca72b3301b7a0bf27262edc759e9f207fb/diff/var/lib/cassandra/commitlog/CommitLog -6-1633100360364.log:设备上没有剩余空间
码头工人信息:
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)
scan: Docker Scan (Docker Inc., v0.8.0)
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 20.10.8
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file …Run Code Online (Sandbox Code Playgroud) docker dockerfile docker-compose docker-swarm docker-machine
Teams 启动时我看到以下错误:
当我们启动 Docker 应用程序时
出了问题创建“rootNode”子节点:在“rootNode”中构造“BackendServices”:进行迁移:读取实际设置:查找值开头的字符“\x00”无效
我尝试过卸载/重新安装、重新启动计算机等。
我的命令有问题docker compose up。
因此,我最近创建了一个全新的 Ubuntu 操作系统安装,并且一直在设置我的开发环境。我已经安装了 Docker,并且大多数情况似乎都工作正常。启动单个容器按预期工作,例如:
~$ docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are …Run Code Online (Sandbox Code Playgroud) 在这里,我使用docker机器创建一个测试机器(dev).
$ docker-machine create -d virtualbox dev
Creating CA: C:\Users\xxx\.docker\machine\certs\ca.pem
Creating client certificate: C:\Users\xxx\.docker\machine\certs\cert.pem
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...
Run Code Online (Sandbox Code Playgroud)
vm被创建并运行时没有缺陷.以下是运行以下命令时的错误:
$ docker-machine env dev
open C:\Users\xxx\.docker\machine\machines\dev\ca.pem: The system cannot fin
d the file specified.
Run Code Online (Sandbox Code Playgroud)
我不知道如何处理这个问题.尝试重新启动boot2docker.
我正在使用docker-machine来创建开发环境.我想更改docker-machine默认的ssh密钥.
我查看我的新机器的配置:
docker-machine config develop
--tlsverify --tlscacert="/Users/robe/.docker/machine/machines/develop/ca.pem" --tlscert="/Users/robe/.docker/machine/machines/develop/cert.pem" --tlskey="/Users/robe/.docker/machine/machines/develop/key.pem" -H=tcp://192.168.99.103:2376
Run Code Online (Sandbox Code Playgroud)
当我尝试使用密钥访问时:
--tlskey="/Users/robe/.docker/machine/machines/develop/key.pem"
使用此命令:
ssh -i /Users/robe/.docker/machine/machines/develop/key.pem docker@192.168.99.103
Run Code Online (Sandbox Code Playgroud)
然后我得到了写密码的提示.那么为什么我无法使用此访问密钥访问我的虚拟机.
有什么帮助吗?
我有Windows 10上运行的Windows泊坞窗,我认为它工作正常。我看到了一些有趣的东西,想问是否有人对此有任何想法。
我有两个正在运行的Docker映像。命令“ docker ps”列出了它们(如下)。当我运行“ docker-machine ls”时,我什么也没得到。“ docker-machine ls”是否也应有结果?
E:\Public\docker>docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8c4b5b2fd86b obd-sdk "nginx -g 'daemon ..." 19 hours ago Up 19 hours 0.0.0.0:8009->80/tcp obdsdk
32a05196bcb3 obd-registrationservice "java -Djava.secur..." 20 hours ago Up 20 hours 0.0.0.0:8110->8110/tcp obdregsvc
E:\Public\docker>docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
E:\Public\docker>
Run Code Online (Sandbox Code Playgroud)
谢谢,马特
编辑:这是第二台Windows 10计算机的屏幕快照,在该计算机中,我确实使用Hyper-v运行dockertoolbox / kitematic。

当我在virtualbox虚拟机中时,可以将其用作docker-machine的目标吗?
例如,如果我在上面定义一些变量,例如;
export DOCKER_MACHINE_NAME=example-machine
export DOCKER_HOST=localhost
Run Code Online (Sandbox Code Playgroud)
等然后像这样使用
eval $(docker-machine env localhost)
Run Code Online (Sandbox Code Playgroud)
提前致谢
我不明白我错过了什么.
docker.compose.yml
version: "3"
services:
web:
# replace username/repo:tag with your name and image details
image: svezday/friendlyhello:part-1
deploy:
replicas: 5
restart_policy:
condition: on-failure
resources:
limits:
cpus: "0.1"
memory: 50M
ports:
- "80:80"
networks:
- webnet
visualizer:
image: dockersamples/visualizer:stable
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints: [node.role == manager]
networks:
- webnet
networks:
webnet:
Run Code Online (Sandbox Code Playgroud)
Dockerfile
# Use an official Python runtime as a parent image
FROM python:2.7-slim
# Set the working directory to /app
WORKDIR /app
# Copy the …Run Code Online (Sandbox Code Playgroud) docker ×10
docker-machine ×10
virtualbox ×3
boot2docker ×2
deployment ×1
docker-swarm ×1
dockerfile ×1
hyper-v ×1
localstack ×1
mocking ×1
ssh-keys ×1
ssl ×1
ubuntu ×1
ubuntu-18.04 ×1