Skip to content

Module_3 Docker Build Issues (M2 Pro Mac) #14

@fffilps

Description

@fffilps

My setup: Macbook Pro M2.

Issue: Docker Build - Exit Code 100 due to Package 'netcat' has no installation candidate & Running Docker Issues

Error Code:

#0 2.039   netcat-openbsd 1.219-1
#0 2.039   netcat-traditional 1.10-47
#0 2.039 
#0 2.046 E: Package 'netcat' has no installation candidate
------
failed to solve: process "/bin/sh -c set -e;     apt-get update ;    apt-get -y install netcat ;    apt-get -y install gettext ;" did not complete successfully: exit code: 100

Solutions:

  1. backend/docker/docker_files/Dockerfile && backend/docker/docker_files/Dockerfile_app
  • Change
apt-get -y install netcat ;\ ---> apt-get -y install netcat-traditional ;\
  1. docker-compose-yml
  • Change Dockerfile_app ports to 5001:5001 instead of 5000:5000
  1. backend/docker/docker_files/Dockerfile
  • Change at the bottom
ENTRYPOINT ["/code/docker/entrypoints/entrypoint.sh"] ---> ENTRYPOINT ["bash", "-e", "/code/docker/entrypoints/entrypoint.sh"]

If a few other people could test wether its a good sturdy solution, we can close this.

IF better ways, make it aware to me please. Beginner Here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions