User Tools

Site Tools


docker:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docker:start [2023/12/26 18:37]
dwheele [Cheat Sheet]
docker:start [2023/12/26 18:59] (current)
dwheele [Cheat Sheet]
Line 18: Line 18:
 ^docker network ls|Shows networks| ^docker network ls|Shows networks|
 ^docker run <image> <command>|Load and run a container| ^docker run <image> <command>|Load and run a container|
 +^docker search <image>|Search for image in docker repository|
 +^docker build . -t serve_image |Build a docker image from a Dockerfile in the current directory|
 +^docker run -p 3001:3000 --name=serve_container serve_image|Run the image, mapping the internal port 3000 from "serve" to the parent host 3001, running serve_Image in a new container called "serve_container"|
 +
 +
 +
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
docker/start.1703615822.txt.gz · Last modified: 2023/12/26 18:37 by dwheele