Resize container resources online
Out of the box you can't do this, containers are meant to be immutable at least configuration wise.
You might be better off using docker-compose
to define these parameters so they are always set for a given application.
An untested example docker-compose.yml
might look like this :
awesome_app: cpu_shares: 0 cpu_set: 0 memory: 0