Docker Cheat Sheet/Update container resources

Update resource limits on a running container.

Section: Inspection and Debugging

Update container resources

bash
bash
docker update --memory 512m --cpus 1.5 web
Explanation

Common for tuning CPU and memory without recreating the container.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Inspection and Debugging
Inspect a container
Show low-level JSON metadata for a container.
OpenIn sheetbashsame section
Format inspect output
Render inspect output through a Go template.
OpenIn sheetbashsame section
Show filesystem changes
Show filesystem changes in a container since it started.
OpenIn sheetbashsame section
Run a container
Create and start a new container.
OpenIn sheetbash1 tag match
Run detached
Run a container in the background.
OpenIn sheetbash1 tag match
Run interactively
Run an interactive shell inside a new container.
OpenIn sheetbash1 tag match