question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quick start docker-compose.yaml file uses an invalid tag

See original GitHub issue

Apache Airflow version: 2.0.1

Environment:

  • OS (e.g. from /etc/os-release): macOS 11.1
  • Kernel (e.g. uname -a): Darwin Kernel Version 20.2.0
  • Install tools: docker-compose

What happened: Following the steps in the Quick start > Running Airflow in Docker page, I pulled down the pre-made docker-compose.yaml file (https://airflow.apache.org/docs/apache-airflow/2.0.1/docker-compose.yaml) and ran docker-compose up airflow-init within the same directory as the docker-compose file. This command failed with: Pulling airflow-init (apache/airflow:2.0.1)... ERROR: manifest for apache/airflow:2.0.1 not found: manifest unknown: manifest unknown.

What you expected to happen: The latest stable official airflow docker image to be pulled, and airflow-init to complete successfully.

How to reproduce it: Follow the instructions per the quick start docs (https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html) to pull down the docker-compose.yaml file, then attempt to run docker-compose up airflow-init.

Anything else we need to know: After seeing this I took a look on dockerhub and it does not appear there is a ‘2.0.1’ tagged image. I then tried simply altering the docker-compose file to instead use the latest tag (with no other changes), which pulled successfully, but did not initialize successfully. I ended up using a different pre-made docker-compose file altogether which used a valid 2.0.1 tag.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
whiterook6commented, Feb 10, 2021

To be clear to anyone else finding this, I had to replace this line in the quickstart docker compose: image: ${AIRFLOW_IMAGE_NAME:-apache/airflow:2.0.1} with this line: image: ${AIRFLOW_IMAGE_NAME:-apache/airflow:2.0.1-python3.8} and run docker-compose up airflow-init again.

2reactions
kaxilcommented, Feb 10, 2021

and apache/airflow:latest should work too

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker invalid tag format - Stack Overflow
I'm using docker-compose to deploy ...
Read more >
Compose file version 3 reference - Docker Documentation
The Compose file is a YAML file defining services, networks and volumes. The default path for a Compose file is ./docker-compose.yml . Tip:...
Read more >
Compose specification - Docker Documentation
The Compose file is a YAML file defining version (DEPRECATED), services (REQUIRED), networks, volumes, configs and secrets. The default path for a Compose...
Read more >
General Discussions - Docker Community Forums
docker -compose.yml is invalid because: Unsupported config option for services.app: 'db'. After running the command " docker-compose up -d".
Read more >
Docker Compose release notes
Removed the need to get the original compose.yaml file to run 'docker ... Docker Compose now displays an error message when invalid values...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found