Sign inSign up

kevineduardo14/time

By kevineduardo14

•Updated almost 2 years ago

Program in Ruby language that tells us the time

Image
0

1.3K

kevineduardo14/time repository overview

⁠time.rb

⁠Description

This is a Docker image for a simple Ruby project that prints the current local time to the console. The project is built using Ruby, and this container is configured to run the Ruby script that displays the time upon startup.

⁠How to Use

  1. Pull the Image: Download the image from Docker Hub by running:

    docker pull kevineduardo14/time
    
  2. Run the Container: Start the container and view the output directly in your terminal:

    docker run kevineduardo14/time
    
  3. Customizing the Run: To run this container in detached mode, you can modify the command as follows:

    docker run -d kevineduardo14/time
    

⁠Environment Variables

This Ruby project does not require additional environment variables for basic functionality.

⁠Additional Information

This container runs on Ruby 3.0 and executes the time.rb script automatically upon container startup, printing the current local time to the console every second.

Tag summary

Content type

Image

Digest

sha256:f2cd5b718…

Size

335.1 MB

Last updated

almost 2 years ago

docker pull kevineduardo14/time