🦲
mind
  • cleber's mind
  • plans
    • fact checking
    • personal assistant
  • self-management
    • agenda and tasks
    • mails and emails
  • knowledge
    • career
    • programming
      • Big O Notation
      • browsing data
      • C/C++
      • databases
      • eclipse
      • gradle
      • java
        • apache camel
      • javascript
      • naming convention
      • mysql
      • prolog
      • regex
      • REST
      • ssl/tls
      • version control
        • git commands
      • web-semantics
      • wot
    • research
      • mas
      • planning
      • math
        • probability
      • machine learning
      • nlp
      • speech recognition
      • data sources
      • data visualisation
    • it
      • asterisk
      • containers
        • installing docker
        • deploying busybox
        • deploying a sample
        • deploying node-red
        • deploying from the hub
      • clusters
        • installing kubernetes
        • deploying bootcamp
        • deploying nginx
        • deploying jacamo-rest
        • grafana
      • deploy
        • heroku
      • linux
        • tmux
        • vim
        • startup
      • networks
      • pdf
        • ssh
    • productivity
    • language
      • expressions
        • nice signposts
        • linking expressions
      • latex
      • scientific
      • writing
    • sailing
    • financial
      • assets
    • emergency
    • out of boxes
  • teaching
    • eletrônica digital
      • Conversão decimal para binário
      • Conversão binário para decimal
      • Sinais analógicos vs digitais
    • programação I
    • cabeamento estruturado
  • moments
    • insightful ai facts
    • ai4industry-hackathon
    • previous activities
  • brasil
  • external links
    • personal webpage
    • my github
Powered by GitBook
On this page
  • Creating and running an image
  • Pulling an image from a docker repository and running the terminal
  • Removing an image

Was this helpful?

  1. knowledge
  2. it
  3. containers

deploying from the hub

Deploying a docker image from the hub

Previousdeploying node-redNextclusters

Last updated 5 years ago

Was this helpful?

Some reference.

Examples assume there is an image at the following docker hub address

Creating and running an image

  • Building and assigning the tag user/image_idto the local image $ sudo docker build -t user/image_id .

  • Check existing images $ sudo docker images

  • Create a network $ sudo docker network create network_name

  • Run a docker image $ sudo docker run -ti user/image_id a_command

    • Example $ docker run -d -P -p 8888:8080 -ti cleberjamaral/jacamo-rest-run sh

Pulling an image from a docker repository and running the terminal

  • Pulling an image from docker hub $ sudo docker pull user/image_id:tag

    • Example $ docker pull cleberjamaral/jacamo-rest-run:latest

  • Running an instance and opening the terminal $ docker run -ti repository_id sh

    • Example $ docker run -ti cleberjamaral/jacamo-rest-run sh

  • Attaching to a running container $ docker attach container_id

Removing an image

  • Removing an image $ sudo docker image rm image_id

    • To force removing associated container $ sudo docker image rm image_id -f

docker useful commands
https://hub.docker.com/repository/docker/cleberjamaral/jacamo-rest-run