1
resposta

Erro na build do ambiente dev: OCI runtime create failed

Por algum motivo tentar subir o ambiente de dev até pega a imagem e cria o container mas caí nesse erro que vem do script shell dado provavelmente.

 Tagging built image with isprogis/django_todolist_image_build:latest
15:57:36 Docker Build Response : 3d6d2ac6d806
15:57:36 Docker Build Done
15:57:36 [jenkins-todo-list-principal] $ /bin/sh -xe /tmp/jenkins1858218324758124846.sh
15:57:36 + docker run -d -p 82:8000 -v /var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock -v /var/lib/jenkins/workspace/jenkins-todo-list-principal/to_do/.env:/usr/src/app/to_do/.env --name=todo-list-teste isprogis/django_todolist_image_build
15:57:36 4a9d3af8bdbe41be28e29a706a84a5b3e4217d6ea4454e4e2bef265af52a7d8d
15:57:37 docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: process_linux.go:495: container init caused: rootfs_linux.go:60: mounting "/var/lib/jenkins/workspace/jenkins-todo-list-principal/to_do/.env" to rootfs at "/var/lib/docker/overlay2/12b0be459bb40bcf4b1aa93bc26f18fd7fe1bdb366dfeaf2fa729c5e39f40ea5/merged/usr/src/app/to_do/.env" caused: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
CONTAINER ID   IMAGE                                  COMMAND                  CREATED          STATUS    PORTS                                   NAMES
4a9d3af8bdbe   isprogis/django_todolist_image_build   "gunicorn to_do.wsgi…"   15 minutes ago   Created   0.0.0.0:82->8000/tcp, :::82->8000/tcp   todo-list-teste
1 resposta

Olá Isabel, estou com um problema parecido.

Conseguiu resolver ?