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

Hello, I have built a .net solution which you can see here on github. The solution contains a web api project which is based on mongodb and uses easynetq. It also contains a console application which has a reference to the web api and also uses easynetq.
I was asked to deliver this solution wich a docker compose command, however I faced a few issues with the dockerfiles and the docker compose file, hence this answer. Whenever I add the Visual Studio support for Docker in my projects, then the solution fails to run....among other problems. Can you please provide me the correct docker files for this scenario?
0
Become a CompTIA Certified Healthcare IT Tech
LVL 13
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Hello,

I'm trying to install Docker on Linux RedHat RHEL 7.2 server and facing a lot of issues like absence of libraries. Also I'm having a lot of issues with the SE Linux.

What are the prerequisites for this ? which kernel? You can see the error below:


root@su14692# sudo yum install docker-ce docker-ce-cli containerd.io
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Repository docker-ce-stable is listed more than once in the configuration
Repository docker-ce-stable-debuginfo is listed more than once in the configuration
Repository docker-ce-stable-source is listed more than once in the configuration
Repository docker-ce-edge is listed more than once in the configuration
Repository docker-ce-edge-debuginfo is listed more than once in the configuration
Repository docker-ce-edge-source is listed more than once in the configuration
Repository docker-ce-test is listed more than once in the configuration
Repository docker-ce-test-debuginfo is listed more than once in the configuration
Repository docker-ce-test-source is listed more than once in the configuration
Repository docker-ce-nightly is listed more than once in the configuration
Repository docker-ce-nightly-debuginfo is listed more than once in the configuration
Repository docker-ce-nightly-source is listed more than once in the configuration
docker-ce-nightly

Open in new window

0
hello, before all excuse for the newbie question: I'm totally new to Docker and to Attendize.
I've installed The open source software Attendize in a Docker environment successfully following these instructions:

http://www.attendize.com/getting_started.html#running-attendize-in-docker-for-development

and soon after the installation I was successfully able to connect to localhost and testing the application.

But at the restart of the PC I was not able to connect to localhost again: maybe that I should "restart" something on Docker?

I've Ubuntu 16.04,  Docker 18.09.6, Docker-compose 1.23.2

Thanks,
Fabiano
0
how to move data from sonarqube (7.4) on postgres standalone server, to other ubuntu server on docker sonar with postgres?
What i did:
i install sonar with postgres on docker sonar 7.7-community and postgres 11.3
then i take dump of old sonar and restore on new postgres.
it's not work.
0
my nginx container can not see other containers.
i start nginx docker as
docker pull nginx and create my own image and copy my nginx.conf to /etc/nginx/nginx.conf
my docker-compose for nginx is
-----
version: '3'
services:
  nginx:
    image: ssh-nginx:2.0
    container_name: my-nginx
    ports:
      - '80:80'
      - '443:443'
    expose:
      -  '8080'
    volumes:
      - /containers/nginx/src:/usr/share/nginx/html
      - /containers/nginx/src/site-enable:/var/www
-----
i have jenkins running in same server and build.conf is in volume /var/www/
build.conf is

------
server {
   listen       80;
   server_name  "";

   access_log off;

   location / {
       proxy_pass         http://build:8080;

       proxy_set_header   Host             $host;
       proxy_set_header   X-Real-IP        $remote_addr;
       proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
       proxy_set_header   X-Forwarded-Proto http;
       proxy_max_temp_file_size 0;

       proxy_connect_timeout      150;
       proxy_send_timeout         100;
       proxy_read_timeout         100;

       proxy_buffer_size          8k;
       proxy_buffers              4 32k;
       proxy_busy_buffers_size    64k;
       proxy_temp_file_write_size 64k;    

   }

}

-------
index.html in nginx is ok and i can see my page from index.html.
Problem  is  "I CAN NOT SEE JENKINS BUILD" browser says page not found....
inotifywait -mrq /etc | grep …
0
I try to run sonarqube 7.7. on docker with postgresql database.
i running artifactory on postgresql and i using default port 5432.
When i try sonarqube and in my docker compose change port to 5430 web server want to start.
how to use same docker postgresql for both artifactory and sonar.
i mean how from compose-file tell sonar to use existing container (of course i login to postgres and create a database for sonar)
0
Deat Experts
is it a good practice to run docker for MariaDB/MySQL in a production environment for 10000 users?

please suggest!!!
0
is there any way to create master slave for postgresql when slave is on docker installation ?
0
xcp-ng center show nothing under management continer.
i have a coreos and 2 conrainers running in this os, but i can't see containers under container management on xcp-ng center (xen)
i have latest coreos and latest cxp-ng server "7.6".
0
I have a nginx with many sites_enabled file how to configure if i move it to docker nginx?
0
Ensure you’re charging the right price for your IT
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Hi Expert

I have encountered issued during the deployment of docker image  when head over to the URL with port 8.8.8.8.

Please note i am using instance in the AWS.
0
How to write application event logs in individual (not centralised) docker container for windows that has been deployed in Azure service fabric via AWS cicd . what configuration is needed if any ? if it is being logged then  what will be the file path.  ?
0
Hi,  

I am having a problem with Docker CE  (Docker version 18.09.1, build 4c52b90)

on Centos 7.  The problem is with MACVLAN Bridging I am trying to configure a MACVLAN bridge with a exclusion of 192.168.1.2 using the following code.

docker network create -d macvlan \
  --subnet=192.168.1.0/24 \
  --gateway=192.168.1.1  \
      --aux-address="router=192.168.1.2/24" \
   -o parent=enp0s3 pub_net

I get the error:  1Error response from daemon: Pool overlaps with other one on this address space
or no matching subnet for aux-address

When this is sorted out I would like to run this command:

docker run -p 8000:443/tcp  --rm -itd   --network pub_net   --name my_pub_net-alpine   alpine:latest   ash

does anyone know how to fix this problem or give me a workaround so I can forward ports for Nginx.

Kind regards

Justin
0
Can anyone provide me with a link to how to uninstall 'Docker Compose' from Windows server 2016 ?

There is plenty out there about how to uninstall Docker from Win 2016 and RHEL but nothing I can find that is specifically about 'Docker Compose' and Win 2016.
0
I managed to run docker and install wordpress on ubuntu linux but can't seem to get the handle how I can edit the files within the dock as I get permission issues.
I think I am looking at it the wrong way about,
Could somone get me thinking the right way because  I love the performance for local development :).
(PHP ,Wordpress,MYSQL on NGINX).
0
hi,

why can't run the docker container with error for yr advice. Tks.

1.jpg
0
Hi,

Anyone can advice how to retrieve accurate information to determine the overhead and size the hardware requirement (CPU, RAM, Storage, Network) by calculation for docker container APPs like elastic LB, fault tolerance which running on Kuberbnetes orchestration layer to design 500000 live video feed coming to share the load on the bare-metal design?

Tks
0
I'm just starting to learn Docker, and I think I have some of the basic concepts of creating containers down.  My intention is to have multiple containers on my server, each serving one unique website.

Now, here's my question.  I don't know how to handle the ports if there are multiple containers all set to respond to port 80.  Won't it cause some sort of problem if there are multiple containers, each running their own instance of apache, each reacting to port 80?  Is there some sort of internal IP addressing then that needs to take place to handle that?

I've got a pretty decent idea how the routing/responding through Apache works on a single server - but isn't this conceptually multiple servers all tied together with the same IP?
0
I have setup Code Pipeline to build a docker instance and deploy it on a ECS cluster, I have created my buildspec.yml and everything is working, however I need to adjust my buildspec.yml to print image definitions that setup a health check but so far its not working. Here is my current code for my buildspec.html

version: 0.2

phases:
  install:
    commands:
      - echo Entered the update phase...
      # Updates Docker Instance
      - apt-get update -y
  pre_build:
    commands:
      - echo Logging in to Amazon ECR...
      - aws --version
      - $(aws ecr get-login --region ap-southeast-2 --no-include-email)
      # ECS Repository URI
      - REPOSITORY_URI=###########.dkr.ecr.ap-southeast-2.amazonaws.com/###########
      - COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
      - IMAGE_TAG=${COMMIT_HASH:=latest}
  build:
    commands:
      - echo Build started on `date`
      - echo Building the Docker image...          
      - docker build -t $REPOSITORY_URI:latest .
      - docker tag $REPOSITORY_URI:latest $REPOSITORY_URI:$IMAGE_TAG
  post_build:
    commands:
      - echo Build completed on `date`
      - echo Pushing the Docker images...
      - docker push $REPOSITORY_URI:latest
      - docker push $REPOSITORY_URI:$IMAGE_TAG
      - echo Writing image definitions file...
      # Prints Task Definitions
      - printf '[{"name":"website","imageUri":"%s","healthCheck":{"retries":3,"command":["/bin/bash curl -f http://localhost/ || exit

Open in new window

0
JavaScript Best Practices
LVL 13
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

Hi Experts,
How to install apparmor in alpine Linux docker image.
Please share me the steps to do it.
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
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

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.

Top Experts In
Docker
<
Monthly
>