challengehoogl.blogg.se

Docker syslog driver
Docker syslog driver







# - set the environment variable SECRET_KEY to "ssssh". # - bind UDP port 9001 within the container to port 8081 on the host, only # listening on localhost. # - grant the container read write permissions for the host's /dev/sda device # through a node named /dev/xvda # - bind TCP port 9000 within the container to port 8080 on all interfaces # on the host. # - link this container to the existing redis container launched above with # an alias. # If any configuration options have changed, the existing container will be # stopped and removed, and a new one will be launched in its place. # - ensure that a container is running with the specified name and exact image. This will: # - pull the latest version of your application image from DockerHub. name : redis container docker : name : myredis image : redis command : redis-server -appendonly yes state : started expose : - 6379 volumes_from : - mydata # Ensure that a container of your application server is running. name : data container docker : name : mydata image : busybox state : present volumes : - /data # Ensure that a Redis server is running, using the volume from the data # container. If no container # by this name exists, it will be created, but not started. # Ensure that a data container with the name "mydata" exists. The module # can accept either a name to target a container uniquely, or a count to operate # on multiple containers at once when it makes sense to do so. # Containers are matched either by name (if provided) or by an exact match of # the image they were launched with and the command they're running.









Docker syslog driver