[ticket/11479] Fix install/update (rebuild container)

Code copied from fix in 11305

http://tracker.phpbb.com/browse/PHPBB3-11479