Parameter -f changes the name of the Dockerfile (when it’s different than regular Dockerfile). It is not for passing the full path to docker build. The path goes as the first argument.
Syntax is:
docker build [PARAMS] PATH
So in your case, this should work:
docker build -f MyDockerfile -t proj:myapp /full/path/to/
or in case you are in the project directory, you just need to use a dot:
docker build -f MyDockerfile -t proj:myapp .
Related Posts:
- How do I pass environment variables to Docker containers?
- denied: requested access to the resource is denied : docker
- What is the difference between the ‘COPY’ and ‘ADD’ commands in a Dockerfile?
- Docker: unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx
- What is the use of PYTHONUNBUFFERED in docker file?
- Change directory command in Docker?
- Can Mac OS X be run inside Docker? [closed]
- Using prevNext Modx Addon
- :wq! command in vim
- how to set the background color of the status bar during the launching phase [duplicate]
- api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file [closed]
- When is K 1024 and when is it 1000?
- What is a MIME type?
- Logitech/LGHUB Lua – Loop with break
- are there dictionaries in javascript like python?
- How can I convert MP3 file to a Base64 encoded string? [closed]
- Understanding The Modulus Operator %
- Understanding the main method of python [duplicate]
- Dial pad to get phone number (with Android button images)
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How to fix “VirtualBox Interface has active connections” error in Windows?
- How is the AND/OR operator represented as in Regular Expressions?
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How to fix “VirtualBox Interface has active connections” error in Windows?
- Istio Ingress resulting in “no healthy upstream”
- Why is it not possible to fake an IP address?
- How to open a “-” dashed filename using terminal?
- Substring in excel
- What is a LAMP stack?
- What is a sanity test/check
- What is the difference between POST and PUT in HTTP?
- What is the difference between POST and PUT in HTTP?
- How to find Google’s IP address?
- What exactly is a VBO in OpenGL?
- What and where are the stack and heap?
- ping response “Request timed out.” vs “Destination Host unreachable”
- Authentication versus Authorization
- What is a reverse shell?
- How does npm start work? What all processes are happening in the background?
- What is an instance variable in Java?
- What is the := operator?
- What is tail recursion?
- Discord music bot not working
- What does “:=” mean in Pseudocode? [closed]
- Why am I getting error for apple-touch-icon-precomposed.png
- No results found on kibana -> discover
- Docker: How to delete all local Docker images
- What is Xpenology? Is it Linux related thing?
- Docker: How to delete all local Docker images
- How to list containers in Docker
- Why do we need virtual functions in C++?
- What is a CSRF token? What is its importance and how does it work?
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- Create blank image in Imagemagick
- How to copy files from host to Docker container?
- Official definition of CSCI (Computer Software Configuration Item)
- How could I ping @here in Discord.py?
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- What does %>% mean in R [duplicate]
- super() in Java
- Visual List of iOS Fonts?
- What is useState() in React?
- TCP vs UDP – What is a TCP connection? [duplicate]
- How do I copy folder with files to another folder in Unix/Linux? [closed]
- ssh : Permission denied (publickey,gssapi-with-mic)
- Eclipse IDE for Java – Full Dark Theme
- Amazon Linux: apt-get: command not found
- Google Calendar API event insert always return 404 “not found” error
- ssh connect Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
- What’s the syntax for mod in java
- What does the Java assert keyword do, and when should it be used?
- How to get rid of the “No bootable medium found!” error in Virtual Box? [closed]
- How do I fix a “Expected Primary-expression before ‘)’ token” error?
- Using getline() with file input in C++
- STDERR? What is it? What are its common uses?
- UML Sequence diagram auto-numbering in Visual Paradigm
- Error in “MLSD” command While Connecting FTP to Server [closed]
- Java default constructor
- How do I make a delay in Java?
- Casting variables in Java
- Handling file renames in Git
- PermissionError: [Errno 13] in Python
- Why are there two ways to unstage a file in Git?
- ‘git’ is not recognized as an internal or external command
- did you specify the right host or port? error on Kubernetes
- Compiler Error “void value not ignored as it ought to be” in C programming [duplicate]
- How does Java’s PriorityQueue differ from a min-heap?
- How can I use environment variables in Nginx.conf
- What is archive mode in rsync?
- Docker System has not been booted with systemd as init system
- How to get Twitch watchtime (like streamelements)
- What is the difference between functional and non-functional requirements?
- how to use cookie-free domains (yslow)
- How to accept space in regex?
- Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException Error
- Is a wildcard CNAME DNS record valid?
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- What is a Memory Heap?
- 403 Forbidden vs 401 Unauthorized HTTP responses
- Turn off pager for psql’s interactive output