Skip to content

Instantly share code, notes, and snippets.

@neybapps
Last active August 18, 2024 19:37
Show Gist options
  • Save neybapps/d185ce141fdba3316bb15252607c9948 to your computer and use it in GitHub Desktop.
Save neybapps/d185ce141fdba3316bb15252607c9948 to your computer and use it in GitHub Desktop.
Building and running Docker images
docker build -t video-processing-service .
// for mac
docker build -t video-processing-service --platform linux/amd64 .
// List
docker images
// Run
docker run -p 3000:3000 -d video-processing-service
// To copy a file out of a running Docker container into your host, you can use the docker cp command. Here's how to do it:
docker cp <container-id-or-name>:/app/processed-nc-intro.mov ./
// Clean Up
docker ps
docker stop <container-id-or-name>
docker ps -a
docker rm <container-id-or-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment