Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
kubernates [2018/06/11 14:00]
root [Hack #1]
kubernates [2018/06/11 14:01] (current)
root [Hack #1]
Line 90: Line 90:
 <code java> <code java>
 docker run -d -p 5000:5000 --restart=always --name registry registry:2 docker run -d -p 5000:5000 --restart=always --name registry registry:2
 +</​code>​
 +
 Now tag your image properly: Now tag your image properly:
  
 +<code java>
 docker tag ubuntu localhost:​5000/​ubuntu docker tag ubuntu localhost:​5000/​ubuntu
 +</​code>​
 +
 Note that localhost should be changed to dns name of the machine running registry container. Note that localhost should be changed to dns name of the machine running registry container.
  
 Now push your image to local registry: Now push your image to local registry:
  
 +<code java>
 docker push localhost:​5000/​ubuntu docker push localhost:​5000/​ubuntu
 +</​code>​
 +
 You should be pull it back: You should be pull it back:
  
 +<code java>
 docker pull localhost:​5000/​ubuntu docker pull localhost:​5000/​ubuntu
 +</​code>​
  
 == Create a Deployment ==  == Create a Deployment == 
 
kubernates.txt · Last modified: 2018/06/11 14:01 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd