Answers for "docker run image"

13

docker run name

docker run --name <container name> -dp <local port>:<container port> <image>
Posted by: Guest on July-27-2020
0

docker run image

docker run <image id> --name 'container name'
Posted by: Guest on May-06-2021
0

docker image load

$ docker load --input fedora.tar
$ docker load -i fedora.tar
Posted by: Guest on October-10-2020
4

docker run command on container

sudo docker exec -it <container name> <command>
Posted by: Guest on July-04-2020
0

docker run all port mapping

docker run --network host
When running using --network host there is no need to map the ports.
All the docker container ports will be available since the network host mode 
makes the container use the host's network stack.
Posted by: Guest on October-28-2020
0

docker images command

docker images


NOTE:
To see which images are present locally, use the "docker images" command:
REPOSITORY   TAG      IMAGE ID        CREATED      SIZE
debian       jessie   f50f9524513f    5 days ago   125.1 MB
debian       latest   f50f9524513f    5 days ago   125.1 MB
Posted by: Guest on June-26-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language