(Docker and Git/GitHub)
(a) Explain the exact command(s) needed to execute a Docker
container that runs in the background, can
be interactive using the terminal shell, and exposes ports 100 and
101 to the local machine ports of the
same number.
(b) Explain the difference between a Docker container image and a
Docker container instance.
(c) Explain the exact command(s) needed to push local data files
and directories to your GitHub repository.
ANS -B
Images can be derived of containers, though a container wants to run an image to be. Therefore, ampules are reliant on images and use them to concept a run-time setting and run an request. The two ideas exist as vital components (or rather stages) in the process of consecutively a Docker container.
Docker Images are rummage-sale to set up requests and pre-arranged server surroundings. Containers use waiter info and file system if by image in instruction to function. Images can be communal on Docker Center. It brands no sense in distribution a running object, always docker imageries are communal.
Get Answers For Free
Most questions answered within 1 hours.