A method of activating a new device in a vehicle based on a container includes: detecting the new device mounted in the vehicle using an interface implemented in the vehicle, identifying the detected new device, transmitting, to a server, (i) a request for a container for controlling an execution of the identified new device and (ii) information obtained by one or more sensors implemented in the vehicle, receiving, from the server, a container package including at least one container that is retrieved in the server in response to the request for the container, and controlling the execution of the new device by activating the at least one container.