我是Docker的新手,我试图在Docker上运行Selenium Grid测试。为此,我创建了一个docker撰写文件,并在下面的命令中执行
docker-compose -f docker-compose.yaml up
一切正常,但几个小时后,我重新启动主机并再次执行上述命令。这一次我犯了错误。
ERROR: for selenium-hub Cannot create container for service selenium-hub: Conflict. The container name "/selenium-hub" is already in use by
我首先得到了我的nginx docker镜像:
docker pull nginx
然后我启动了它:
docker run -d -p 80:80 --name webserver nginx
然后我停了下来:
docker stop webserver
然后我尝试重新启动它:
$docker run -d -p 80:80 --name webserver nginx
docker: Error response from daemon: Conflict. The container name "/webserver" is already in use by contai
我在运行container_run_and_commit_layer时遇到问题,我得到的错误消息是
docker not found; do you need to manually configure the docker toolchain?
据我所见,这与DOCKER变量无关:
# Resolve the docker tool path
DOCKER=""
DOCKER_FLAGS=""
if [[ -z "$DOCKER" ]]; then
echo >&2 "error: docker not foun
我是一个很新的码头,并试图建立一个postgres数据库映像与预设的数据库方案上创建。因此在dockerfile下面创建
#alpine linux version of the postgres image. uses a really small amount of disk
FROM postgres:alpine
#environment database name that postgres will get to create during the startup
ENV POSTGRES_DB=test
#Superuser name that will be created
我有一个正在运行的码头容器,它是使用厨师command(Update)下面创建的。
docker_container node['docker']['image'] do
repo node['docker']['repo']
port '80:8080'
log_opts ['max-size=1m', 'max-file=1']
command 'env'
tag node['docker']['tag']
我有几个松散的容器,例如包括一个rabbitmq容器,我正在使用它们进行开发。我已经开始将所有这些松散的容器迁移到一个docker-compose文件,以便更容易管理,并在测试时加速/减速。不幸的是,这些容器中有很多配置,我不希望再花时间进行设置。
因此,我想知道是否有可能在新的docker-compose文件中采用docker容器。
我尝试使用与松散容器相同的名称启动组合文件,但得到的结果是cannot create container for service rabbitmq: Conflict. The container name "/rabbitmq" is alre
我在上的中托管一个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
Docker version 18.03.1-ce, build 9ee9f40
我正试图增加Ubuntu 16.04上的码头集装箱尺寸。
我在/etc/docker/daemon.json创建了以下文件
{
"storage-opts": ["dm.basesize=20G"]
}
然而,当我sudo service docker start时,我得到:Job for docker.service failed because the control process exited with error code. See "systemctl
我有一个docker容器,它使用monit来启动一些服务,比如mongodb,nginx。我有一个bash脚本,它被docker用来启动monit。以下是该文件的内容:
#!/bin/bash
# Monit will start all apps
/usr/bin/monit -c /etc/monitrc &
# Stay up for container to stay alive
while [ 1 ] ; do
if !(pgrep monit)
then /usr/bin/monit -c /etc/monitrc &
fi
sleep 5m
d
我出乎意料地关闭了我的主机,当它再次打开时,我所有的码头集装箱都退出了。
我可以看到他们用docker ps -a
我不能用docker start {container_id}启动其中任何一个
我知道这个错误:
Error response from daemon: Cannot start container cc61efa31df8: [8] System error: not a directory
Error: failed to start containers: [cc61efa31df8]
有人试过启动退出集装箱吗?
我不想删除和重新创建容器,因为我有一些关于mysql容器的数