Compose: ERROR: Cannot create container for service sass: Invalid container name (_sass_1)

Created on 11 Nov 2016  路  2Comments  路  Source: docker/compose

Docker version 1.12.2, build bb80604
docker-compose version 1.9.0-rc4, build 181a4e9
ProductName: Mac OS X ProductVersion: 10.9.5 BuildVersion: 13F1808
docker-machine version 0.8.2, build e18a919

My docker-compose.yml:

version: '2.0'
services:
  sass:
    image: ubuntudesign/sass
    command: sass --watch --style compressed --scss /app/static/styles/scss/style.scss:/app/static/styles/style.css
    restart: always
  web:
    build:
      context: ./
      dockerfile: ./Dockerfile
    image: python:3.3
    command: python3 wsgi.py 
    env_file: ./.env
    volumes:
      - ./:/code
    working_dir: /code
    ports:
      - "443:443"
      - "8051:80"
    links:
      - sass
    depends_on:
      - sass
    restart: always

on earlier versions of 1.7 and 1.8 I get the same error ...

Most helpful comment

I did not set COMPOSE_PROJECT_NAME. And it's not the name of the directory from which you launch...

I think I know what the problem is. The problem is that the directory is called the Russian character "袩褉芯械泻褌"...

Thanks for the help!

All 2 comments

Did you set a custom COMPOSE_PROJECT_NAME? If not, what is the name of the folder containing your docker-compose.yml file?

I did not set COMPOSE_PROJECT_NAME. And it's not the name of the directory from which you launch...

I think I know what the problem is. The problem is that the directory is called the Russian character "袩褉芯械泻褌"...

Thanks for the help!

Was this page helpful?
0 / 5 - 0 ratings