Страница 1 из 5

docker guru ищется

Добавлено: 15 мар 2018, 17:54
Vims
кто нить разбирается и работал с докером? Я первый раз столкнулся, есть вопросы по инишал деплоемент.
Виртуалка на AWS и все остальное там же.
Спасибо

Re: docker guru ищется

Добавлено: 15 мар 2018, 19:07
borei
Немного опыта есть. Давай вопросы в студию. Да поможет нам коллективный разум .

Re: docker guru ищется

Добавлено: 15 мар 2018, 19:12
Vims
borei писал(а):Немного опыта есть. Давай вопросы в студию. Да поможет нам коллективный разум .
ок завтра на работе все скину. :wink: спасибо

Re: docker guru ищется

Добавлено: 16 мар 2018, 09:10
Vims
Вообщем так:
Вот мануал:

To deploy CloudPoint using a Docker image
Create the instance or prepare the physical host to install CloudPoint.
If you deploy CloudPoint in a public cloud, do the following:
Choose an Ubuntu 16.04 Server LTS instance image that meets CloudPoint installation requirements.
Add sufficient storage to the instance to meet the installation requirements.
If you deploy CloudPoint on-premises, do the following:
Install Ubuntu 16.04 Server LTS on a physical x86 server.
Add sufficient storage to the server to meet the installation requirements.

1. Install Docker for Ubuntu. Enter the following: done

sudo apt-get install docker.io

If you have not done so already, create a volume and file system on the host to store CloudPoint metadata and asset metadata. The specific steps depend on your cloud environment.

Download the CloudPoint image (Veritas_CloudPoint_1.0.1_IE.img) from MyVeritas.

If necessary, copy the downloaded image to the machine on which you will deploy CloudPoint.

Load the image. Enter the following:

# sudo docker load -i /home/ubuntu/Veritas_CloudPoint_1.0.1_IE.img done


On the instance or physical host, make sure that the following ports are open:

443

CloudPoint user interface uses this port as the default HTTPS port.

5671

The RabbitMQ server uses this port for communications. This port must be open to support multiple agents.


If the instance is in a cloud, configure this information under Security Group > Inbound.

вот тут застрял что то непонятно.... :s2:

Run the CloudPoint container. Enter the following:

# sudo docker run --name container_name -it -d \
-v full_path_to_volume_name \
-p host_port:container_port \
-p host_port:container_port loaded_image
For example:

# sudo docker run --name CloudPoint -it -d -v /cloudpoint:/cloudpoint \
-p 443:443 -p 5671:5671 veritas/cloudpoint:1.0.1


If you do not specify the volume as -v full_path_to_volume_name/full_path_to_volume_name , the container writes to the Docker host file system.

Open your browser and point it to the host on which CloudPoint is installed.

https://ubuntu_docker_host_name

The configuration screen is displayed and the host name is added to the list of hosts on which to configure CloudPoint.

Re: docker guru ищется

Добавлено: 16 мар 2018, 09:12
Vims
В quick start вот что пишут на этом шаге
On the instance, open the following ports:
443 CloudPoint user interface uses this port as the default HTTPS port.
5671 The RabbitMQ server uses this port for communications. This port must be open to support multiple agents.
6 Run the CloudPoint container.
# sudo docker docker run -it --rm -v /volume_name:/path_to_volume -v /var/run/docker.sock:/var/run/docker.sock veritas/cloudpoint_image install
--restart always

https://www.veritas.com/content/support ... sg_for_aws

Re: docker guru ищется

Добавлено: 16 мар 2018, 10:06
Stanislav
Vims писал(а): вот тут застрял что то непонятно.... :s2:

Run the CloudPoint container. Enter the following:

# sudo docker run --name container_name -it -d \
-v full_path_to_volume_name \
-p host_port:container_port \
-p host_port:container_port loaded_image
For example:

# sudo docker run --name CloudPoint -it -d -v /cloudpoint:/cloudpoint \
-p 443:443 -p 5671:5671 veritas/cloudpoint:1.0.1
Совершенно согласен - сам в непонятках - нафуа аттачить tty и тут же его детачить? :dunno:

Re: docker guru ищется

Добавлено: 16 мар 2018, 10:14
Vims
мне так кажется надо сделать контейнер в докере. Но как пока не понял... и потом его запустить вообщем с трансляцией действий глаза-руки пока напряг от недостатка знаний в пространстве между ними :lol:

Re: docker guru ищется

Добавлено: 16 мар 2018, 10:35
Stanislav
Vims писал(а):мне так кажется надо сделать контейнер в докере. Но как пока не понял... и потом его запустить вообщем с трансляцией действий глаза-руки пока напряг от недостатка знаний в пространстве между ними :lol:
погоди, погоди - ты уже имаж загрузил... не надо ничего делать...

Сделай:
sudo docker images
у тебя должен быть имаж с именем veritas/cloudpoint и тэгом 1.0.1

Потом сделай:
sudo mkdir /cloudpoint

sudo docker run --name CloudPoint -d --restart always -v /cloudpoint:/cloudpoint -p 443:443 -p 5671:5671 veritas/cloudpoint:1.0.1

BTW, sudo - если ты не root, а если root, то sudo не надо :-)

Потом проверь:
sudo docker ps

должен появить контейнер с именем CloudPoint

Re: docker guru ищется

Добавлено: 16 мар 2018, 10:38
Stanislav
Vims писал(а): # sudo docker docker run -it --rm -v /volume_name:/path_to_volume -v /var/run/docker.sock:/var/run/docker.sock veritas/cloudpoint_image install
--restart always
Так, вот с этим погоди... зачем тебе сокет прокидывать в контейнер?

Re: docker guru ищется

Добавлено: 16 мар 2018, 10:41
Stanislav
Vims писал(а): 1. Install Docker for Ubuntu. Enter the following: done
Вообще на AWS есть готовый имаж виртуалки с докером :roll:

Re: docker guru ищется

Добавлено: 16 мар 2018, 10:43
Vims
сча попробую
я рут. это я понял про судо

Re: docker guru ищется

Добавлено: 16 мар 2018, 10:51
Stanislav
Vims писал(а):я рут
ты крут!

Re: docker guru ищется

Добавлено: 16 мар 2018, 10:52
Vims
root@ip-172-16-0-146:/# docker run --name CloudPoint -d -v /cloudpoint:/cloudpoint -p 443:443 -p 5671:5671 veritas/cloudpoint:1.0.1
Unable to find image 'veritas/cloudpoint:1.0.1' locally
docker: Error response from daemon: repository veritas/cloudpoint not found: does not exist or no pull access.
See 'docker run --help'.

Re: docker guru ищется

Добавлено: 16 мар 2018, 10:52
Vims
directory сделал

Re: docker guru ищется

Добавлено: 16 мар 2018, 11:04
Stanislav
Vims писал(а):root@ip-172-16-0-146:/# docker run --name CloudPoint -d -v /cloudpoint:/cloudpoint -p 443:443 -p 5671:5671 veritas/cloudpoint:1.0.1
Unable to find image 'veritas/cloudpoint:1.0.1' locally
docker: Error response from daemon: repository veritas/cloudpoint not found: does not exist or no pull access.
See 'docker run --help'.
А кто писал:
# sudo docker load -i /home/ubuntu/Veritas_CloudPoint_1.0.1_IE.img
done

Так доне или не доне???

Что сказал:
docker images
?