S
S
Sergey2021-02-09 11:31:50
Docker
Sergey, 2021-02-09 11:31:50

For debugging, is it possible to execute commands from a dockerfile line by line?

For debugging, is it possible to execute commands from a dockerfile line by line?
I thought it would be convenient to see errors, etc.
Otherwise, you have to run the entire script and wait for an error to occur.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2021-02-09
@index0h

During the build, intermediate images are created for each of the steps in your Dockerfile. You can expand the image with a specific step and see what's wrong inside.
For debugging purposes (not always, but quite often), the easiest way is to deploy the base container with the required volumes, and accumulate the instructions by hand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question