Dockerfile image path contains invalid charector

Deploying to Elastic Beanstalk fails with dockerfile that starts with

FROM dockerfile/java

Checking the logs reveals:

  • Node.js process, running in Docker container hangs without exiting or throwing when out of memory
  • Specifying superuser PostgreSQL password for a Docker Container
  • How to edit files in a Confluence docker container? There is no vim and apt-get in it
  • how to set docker_opts on windows
  • Naming Docker Containers on start ECS
  • Nodejs application not running by using docker compose
  • Invalid repository name (java), only [a-z0-9-_.] are allowed
    Failed to pull Docker image dockerfile/java:latest

    The validation regex does not include / though that is the image location. Building and running from the dockerfile works fine locally. Pushing the local image from that dockerfile to the docker repo and then retrieving it using works fine as well.

  • How to pass parameter into docker container and update file in container with passed parameter
  • How to convert a Docker run command into a Swarm command?
  • docker copy file from one container to another?
  • Docker Nginx image with static content from an external volume - permissions issue
  • Docker container curl to web
  • Apache Marathon/Docker Swarm: containers keep repeating
  • One Solution collect form web for “Dockerfile image path contains invalid charector”

    I suspect this is similar to the discussion here on the forum.

    Can you check if your file contains windows line endings? If so can try using dos2unix and convert your file to linux format.

    I hope that will fix the issue for you.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.