Pete
Pete

Reputation: 289

invalid argument running docker-compose up

I am new to docker, trying to run docker image locally according to instruction here

I pull the image by docker pull puckel/docker-airflow, then prepare the .yml file and run docker-compose up -d but keep showing the error:

Error response from daemon: readlink /var/lib/docker/overlay2/: invalid argument

Not sure which part is missing here.

enter image description here

Upvotes: 6

Views: 9787

Answers (4)

Hanan Mehmood
Hanan Mehmood

Reputation: 295

For me it has been same as @Jakob suggested. I have defined the env variable but hasn't provided any value.

Before:

S3_BUCKET

After:

S3_BUCKET=''

After above change, it worked for me.

Upvotes: 0

Jakob Ojvind Nielsen
Jakob Ojvind Nielsen

Reputation: 972

My problem the .env file.

I found that in my .env file I had written some variable names, but did not assign any values. Example of my .env file

# The wrong .env file content
VAR1=A 
VAR2=B 
VAR3 

VAR3 would then be the problem, it should have been at least

# The correct .env file
VAR1=A 
VAR2=B 
VAR3= 

Remark the = sign at VAR3.

Upvotes: 6

user20642604
user20642604

Reputation: 161

Check your .env file. There will be some invalid syntax.

Upvotes: 16

Tolis Gerodimos
Tolis Gerodimos

Reputation: 4408

Maybe there are some corrupted images, try to remove all cache and containers and pull them again.

docker system prune --all
docker volume prune 
docker-compose -f docker-compose-LocalExecutor.yml up -d

Upvotes: 3

Related Questions