Tag: ubuntu

docker smack security on ubuntu

I’m trying to run a docker container for a smack-based application. So, have added security=smack to the ubuntu host grub, and rebooted. Now on the ubuntu host, the smack works by running these two commands: mkdir smackdir mount -t smackfs smack smackdir The goal is to be able to run the smackfs mount command in […]

How to forward SSH into GitLab Docker container based on requested domain

I have server running Ubuntu 16.04 with Docker engine installed. In one container I’m running GitLab service (and of course many other containers with other stuff). Let’s call it’s Docker network address GITLAB_IP. I’m using nginx-proxy for proxying HTTP requests from the outside based on VIRTUAL_HOST environment variable. DNS is set up so everything targeted […]

Sha calculation of docker image layers

Does anybody know how sha is calculated for a docker image layer? I have created two docker images from same docker file. Docker file takes a ubuntu base image. One top of installs the python libraries. In the end, application pkgs are installed. The two images are created back to back with no change in […]

Cgroups report weird cpu and memory usage

I’m using Docker and want to track the cpu and memory usage of all the Docker-related processes on my machine (that is, the Docker Engine, the Docker instances, and so on). I have read the values exposed by the cgroupfs. However, the values are kind of weird. I have run two Docker instances, and the […]

Docker registry getsockopt: connection refused

I am attempting to set up my own docker registry on an EC2 instance, Ubuntu Server 16.04. Having followed https://docs.docker.com/registry/deploying/, I currently have nginx running with LetsEncrypt and have successfully started the docker registry service with the docker run command. However, the system responds that the connection is refused when doing docker push. Below I […]

Docker Ubuntu instance not connecting to the network

I am running Docker 1.12.1 on macOS Sierra 10.12.1. I have downloaded an Ubuntu 16.04 image which I intend to configure to use as the basis for my Webpack building on Bitbucket Pipelines. There are a handful of questions on StackOverflow pertaining to this issue. I have followed them all, but yielding on meagre results. […]

Correct way to set PATH variable within a Ubuntu docker container

I have a container based on Ubuntu 16.04 and installed some custom stuff into /opt/bin. Now I want to add /opt/bin to $PATH. However, no matter what I try, the path variable isn’t available after the Docker container restarts. So far I tried to add export PATH=$PATH:/opt/bin to /etc/profile and /etc/profile.d/myvars.sh. What is the proper […]

docker current not installed – bash on ubuntu on windows 10

I’ve installed docker on bash on ubuntu on windows 10: sudo apt-get install -y docker but when i try to use it: docker -v it gives me the following error: The program ‘docker’ is currently not installed. You can install it by typing: sudo apt-get install docker When I try to reinstall it, I get […]

Docker Ubuntu update-alternatives

I ran into a problem recently where the default compiler, set by update-alternatives, is not inherited. In a base-image I do something like this: FROM ubuntu:16.04 RUN apt update RUN apt install -y gcc-4.9 g++-4.9 cmake make gfortran-4.9 make git wget RUN update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-4.9 10 RUN update-alternatives –install /usr/bin/g++ g++ /usr/bin/g++-4.9 10 […]

Django with USE_TZ = False report local time in my machine but in docker + alpine linux use utc

I have a project in django where USE_TZ = False. When running locally (osx) and use python manage.py shell I get the date in my zone (‘America/Bogota’). So, I deploy with docker + alpine linux inside ubuntu (set to the correct timezone): FROM python:3.5-alpine ENV PYTHONUNBUFFERED 1 ENV PRODUCTION 1 ENV TERM xterm ENV LANG […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.