Edge Computing has been proposed as an architecture for offering services to mobile devices or sensors. Modern multimedia applications such as face recognition, object and pose identification, and mobile augmented reality require cloud computing resources close to the mobile and sensors devices. Docker and containers have been proposed as a platform for edge computing and as a tool for efficient service handoff across edge computing servers. This paper presents a novel container-based Fog computing environment to improve resource usage for the architecture using optimization algorithms.