Docker

Docker is a computer program used to run software packages called containers in an operating-system-level virtualization process called containerization. It’s developed by Docker, Inc. and was first released in 2013.

Share tech news, updates, or what's on your mind.

Sign up to Post

How to access aws s3 bucket out side form aws docker container .

How to configure aws configure in that
0
Has Powershell sent you back into the Stone Age?
LVL 8
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

how to configure aws configure in docker file

my docker file

FROM ubuntu


RUN apt-get update && apt-get install -y awscli


cmd docker pull mariadb
cmd  docker pull mysql
CMD ["/test.sh"]

test.sh
 aws configure set aws_access_key_id default_access_key xxxxxx
 aws configure set aws_secret_access_key default_secret_key xxxxxx
aws configure set default.region us-west-2
 
aws s3 cp s3://mariadbs3bucket/test.txt /test

 mysql -u xxx-pxxx --host xxx -P 3306  --socket=TCP/IP  -e "USE myDB; insert into myDB.tt values(50000);"

the above both command are working fine while running in ec command line
there i have set the aws configure
0
how to access s3 bucket in the docker file.

its expecting aws configure , i export the  key's but its does not help for me!!!
0
How to connect already running mariadb container

I found this query

$ docker run --name appName --link some-mariadb:mysql -d application-that-uses-mysql

i am confuse with the syntax ?
can any one tell me how to use this ??
0
Hi Experts,
How to install apparmor in alpine Linux docker image.
Please share me the steps to do it.
0
what are the package i need to import docker shell script to read AWS s3 bucket file
0
how to write docker script to update maria DB

1. How to connect docker to Maria DB
2. How to do insert and update in Maria DB
0
Hi,

I have a task in AWS that is started by ECS. I have developed a Cloudformation script that creates the ECS cluster, service, task definitions and containers.

The EC2 instances (2 to begin with) are initiated and are healthy. ECS then creates the tasks on each EC2 instance. However, have 1 minute, the tasks are stopped by ECS and it tries to recreate it. I presume this is something to do with the scheduler on AWS and not getting a healthy check back.

It is a node app running on port 300 which is mapped to the container. If I login to the EC2 instance and do a simple curl 127.0.0.1:32XXX (host port) then I get "no reply from server". Ok so it is something wrong with the image or container.

However, if I launch my own container of the same image publishing the ports ("docker run -d -p 32810:3000 <image> yarn start") and then do curl 127.0.0.1:32810 then I get a response from the server.

I cannot figure out how to debug this as there are no logs with any errors. Anyway..(I created the one on port 32810) the image is the same in both. I can only figure it is something to do with what the ECS agent does when it boots a task.

48ccad832ad2        <image>   "yarn start"        9 seconds ago       Up 8 seconds        0.0.0.0:32831->3000/tcp   ecs-test-InterfaceCogTaskDefinition-1UE2FONT2RQU3-1-InterfaceCog-f092fec2d9d1e8a90300
36016de55b81        <image>   "yarn start"        23 minutes ago      Up 23 minutes       0.0.0.0:32810->3000/tcp   practical_banach

0
can anybody give me exact docker compose yml file which will install nginx php mysql to run wordpress
final wordpress need to be run on container with example.com or serverip and on port 80
0
I have to admit that I'm lost on a lot of these apps and languages that appear to be endless rabbit holes to me  but for my own enjoyment and education I'm trying to build a really nice media appliance.
Everything was working fine and then I took the step of installing super transfer 2, it installed docker which is what I believe was the cause of the pages not being found. The webserver is running because I get "Not Found
The requested URL /setup/ was not found on this server.

Apache/2.4.18 (Ubuntu) Server at 10.1.3.39 Port 80"
So I'm kind of stuck and there doesn't appear to be any support on the topic in the plexguide forums.
0
Managing Security Policy in a Changing Environment
Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

While running the docker-compose up for git project Linked-Data-Theater I am getting
error standard_init_linux.go:195: exec user process caused no such file or directory

Below is a stack trace,

ifour.techno@ifour-137 MINGW64 /d/test/Docker/LinkData_Theater_Repo/Linked-Data-Theatre (master)
$ docker-compose up
Starting virtuoso ...
Starting ldt ... done
Attaching to virtuoso, ldt
virtuoso    | standard_init_linux.go:195: exec user process caused "no such file or directory"
ldt         | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt         | INFO: Server version:        Apache Tomcat/7.0.85
ldt         | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt         | INFO: Server built:          Feb 7 2018 18:52:33 UTC
ldt         | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt         | INFO: Server number:         7.0.85.0
ldt         | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt         | INFO: OS Name:               Linux
ldt         | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt         | INFO: OS Version:            4.4.111-boot2docker
ldt         | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt         | INFO: Architecture:          amd64
ldt         | Mar 01, 2018 7:35:47 AM org.apache.catalina.startup.VersionLoggerListener log
ldt     

Open in new window

0
We have a docker container running NGINX and the certificate expired a week ago. I am now stuck trying to figure out what system to generate a CSR on, would it be the virtual machine docker is running on?
0
Hello, how can I start a container and open new ports?
0
Hi guys,

we are looking into a way to use the docker lvm plugin or similar volume management plugin, multiple times per host. Actually we'd like to run 3 docker daemons on the same host and each one to use it's own volume group for it's LVM for it's volumes. The problem is that there is only one configuration file "/etc/docker/docker-lvm-plugin" where we set the volume group that the logical volumes should be created.

thanks
0
I've recently started working for a company that wants to break their monolithic SaaS application up into containerized microservices. I'm having a hard time grasping a fundamental part of persistent storage, though. Why are there so many different competing platforms? Portworx, Rexray, StorageOS, Flocker, Inifint, etc.

My Questions

  1. Why wouldn't someone simply spin up an NFS server and use a hierarchical folder structure there as their storage backend? What gains do you get when using one of these tools?

  1. How dangerous is it to use something like this with Docker? What are the common causes for catastrophic data loss in a docker-based environment?

  1. What persistent storage solution would you recommend and why? My company operates a SaaS platform. The data payloads are small in size (5kb-100kb). Data processing is small-medium in resource consumption. Overall volume is medium, but continues to grow. We're hoping to completely move our monolithic application to the cloud as separate containerized microservices. Including our data warehouse.

  1. Somewhat unrelated, but it ties in. What are the strengths of using Kubernetes as an orchestrator as opposed to Rancher/Cattle? Isn't Kubernetes over-engineered for a small-medium sized platform? Are there any strengths to using Kubernetes in Rancher aside from the one-click installation?


*Thank …
0
Hello Experts,

Currently the Atlassian applications along with the Postgres databases reside on 1 VM.

I am looking for any recommendations for splitting up the applications/databases and platform options to integrate the Atlassian applications on (VM, Docker or AWS).

We have 100 users split between the US and UK.
0
How would a nginx reverse proxy fit in the following setup?
An AWS VPC attached to an internet gateway.
A public Subnet with a Route Table attached to the VPC.
2 Classic Load Balancers inside the VPC, each CLB has one EC2 (Amazon Linux) added to each of the CLBs.
Each EC2 runs a docker container serving a different domain running Meteor app.
Currently each domain can be visited via http, https as well as their Elastic IP.
Route 53 type A records for both domains Alias the Load Balancer for each domain.

I want visitors to be directed to the https, and read somewhere that this can be done using nginx which I installed on one of the EC2 to try.

I am not an expert, just following some tutorial in the process of learning with an objective of setting my own 2 domains.

I also created a third EC2 (Ubuntu 14.04 LTS) in the same VPC and installed nginx on it to try how far I can go on my own.
If all inbound traffic must first come through the internet gateway, Isn't better to put nginx right behind the gateway or what's the most effective fix?
0
I setup two swarm manager nodes(mgr1, mgr2).  But when I try to connect to the container it throws an error message .

[root@ip-10-3-2-24 ec2-user]# docker run --restart=unless-stopped -h mgr1 --name mgr1 -d -p 3375:2375 swarm manage --replication --advertise 10.3.2.24:3375 consul://10.3.2.24:8500/
            

[root@ip-10-3-2-24 ec2-user]# docker exec -it mgr1 /bin/bash
rpc error: code = 2 desc = "oci runtime error: exec failed: exec: \"/bin/bash\": stat /bin/bash: no such file or directory"

It's happening in both the servers(mgr1, mgr2). I'm also running consul container on each node and able to connect to the consul containers.
0

Docker

Docker is a computer program used to run software packages called containers in an operating-system-level virtualization process called containerization. It’s developed by Docker, Inc. and was first released in 2013.

Related Topics

Top Experts In
Docker
<
Monthly
>