Dockerfile image path contains invalid charector

Deploying to Elastic Beanstalk fails with dockerfile that starts with

FROM dockerfile/java

Checking the logs reveals:

  • How can I use VOLUME in a Dockerfile to persist individual files in a directory?
  • Invalid Registry Endpoint pushing docker image
  • Installing npm dependencies inside docker and testing from volume
  • Docker service failed to start application container engine on CentOS7
  • docker-compose error Unicode-objects must be encoded before hashing
  • What's the best way to synchronize a python script with a docker database container?
  • 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 config spring cloud oauth2 in docker container
  • Running docker Ubuntu image on Debian enironment
  • docker swarm service how to specify a delay time in restart policy?
  • Connect to Windows 10 Docker daemon from ubuntu bash
  • Docker-compose up does not start a container
  • Docker Nginx 502 Bad Gateway ipv6
  • 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.