# Updating Limits

> Can you change the CPU or memory limits of a container while it is running, and what are the limits of doing so?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-update-running-container
Last updated: 2026-11-28

Difficulty: Advanced

## Question

Can you change the CPU or memory limits of a container while it is running, and what are the limits of doing so?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

docker update, cgroups, --memory and --memory-swap, --cpus, --restart policy, Live resource limits

Previous: [Searching Hub](https://www.internhack.in/learn/interview/docker-containers/docker-search-command) · Next: [Wait Command](https://www.internhack.in/learn/interview/docker-containers/docker-wait-command) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [Checking Ports](https://www.internhack.in/learn/interview/docker-containers/docker-port-mapping-check)
- [Filtering Images](https://www.internhack.in/learn/interview/docker-containers/docker-image-filtering)
- [User Check](https://www.internhack.in/learn/interview/docker-containers/docker-user-id-check)
- [Images vs. Containers](https://www.internhack.in/learn/interview/docker-containers/docker-images-vs-containers)
- [CMD vs. ENTRYPOINT](https://www.internhack.in/learn/interview/docker-containers/docker-cmd-vs-entrypoint)
- [Multi-stage Builds](https://www.internhack.in/learn/interview/docker-containers/docker-multi-stage-builds)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
