You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: container_helper.rb
    path of file: ./repos/kitchen-docker/lib/kitchen/docker/helpers
    
    the code of the file until where you have to start completion: #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
    
        def run_container(state, transport_port = nil)
          cmd = build_run_command(state[:image_id], transport_port)
          output = docker_command(cmd)
          parse_container_id(output)
        end

        def container_ip_address(state)
          cmd = "inspect --format '{{ .NetworkSettings.IPAddress }}'"
          cmd << " #{state[:container_id]}"
          docker_command(cmd).strip
        rescue
          raise ActionFailed, "Error getting internal IP of Docker container"
        end

        def remove_container(state)
          container_id = state[:container_id]
          docker_command("stop -t 0 #{container_id}")
          docker_command("rm #{container_id}")
        end

        def dockerfile_proxy_config
          env_variables = ""
          if config[:http_proxy]
            env_variables << "ENV http_proxy #{config[:http_proxy]}\n"
            env_variables << "ENV HTTP_PROXY #{config[:http_proxy]}\n"
          end

          if config[:https_proxy]
            env_variables << "ENV https_proxy #{config[:https_proxy]}\n"
            env_variables << "ENV HTTPS_PROXY #{config[:https_proxy]}\n"
          end