1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Facing the following error while trying to create a Docker Container using a...

Discussão em 'Python' iniciado por Stack, Setembro 13, 2025.

  1. Stack

    Stack Membro Participativo

    I'm running instructions defined in a DockerFile:

    FROM ubuntu:latest
    RUN apt-get update
    RUN apt-get install -y python3 pip
    COPY ./ .
    RUN python3 test.py


    test.py:

    import pandas as pd
    import numpy as np
    print('test code')


    command being used to create a Docker Container ->

    docker build --no-cache . -t intro_to_docker -f abs/path/to/DockerFile


    folder structure -> (both files are present at abs/path/to)

    abs/path/to:
    -DockerFile
    -test.py


    Error message ->

    error from sender: open .Trash: operation not permitted

    (using sudo su did not resolve the issue, which i believe is linked to the copy commands)

    I'm using a Mac.

    Continue reading...

Compartilhe esta Página