Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Vulnerability Check fails for the image based on "ibmliberty"

3100012GTT gravatar image
Question by Kosker  (3) | Dec 08, 2015 at 11:46 AM libertycontainersvulnerabilityibmcloudimages

I've created a docker image that is based on "ibmliberty".However when I try to create a container from that image, I'm getting "Deployment Blocked" error. When I try to create container from pure "ibmliberty" image, vulnerability assessment says it's safe to deploy that image. I really don't understand how vulnerability check works because there is nothing different between the image that I have created and the "ibmliberty" image. You can see my dockerfile below. and vulnerability assessment output. I've spent hours to figure out the reason and tried to upgrade the packages in the dockerfile, however nothing solved my problem including updating the packages that causes vulnerability assessment fail.

 FROM registry.ng.bluemix.net/ibmliberty:latest
 
 RUN apt-get purge -y openssh-server
 RUN apt-get purge -y openssh-sftp-server
 RUN apt-get -y autoremove
 
 EXPOSE 9080
 EXPOSE 22

Here is the vulnerability assessment output for my image: alt text And here is the vulnerability assessment for ibmliberty image: alt text

screen-shot-2015-12-08-at-193858.png (391.9 kB)
screen-shot-2015-12-08-at-194256.png (258.7 kB)

People who like this

  0   Show 1
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270007TC0B gravatar image bctak (41)   Dec 10, 2015 at 09:19 AM 0
Share

Hi. I am sorry for the delay. I will be able to help you with this. I am investigating this now.

2 answers

  • Sort: 
270007TC0B gravatar image
Accepted answer

Answer by bctak (41) | Dec 10, 2015 at 11:01 AM

It works now. This is the Dockerfile I used. Try this and let me know how it goes.

 FROM registry.ng.bluemix.net/ibmliberty:latest
 
 RUN apt-get purge -y openssh-server
 RUN apt-get purge -y openssh-sftp-server
 RUN apt-get -y autoremove
 
 RUN apt-get update -y
 RUN apt-get upgrade -y
 EXPOSE 9080
 EXPOSE 22
 
Comment
Kosker

People who like this

  1   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
3100012GTT gravatar image Kosker (3)   Dec 10, 2015 at 11:14 AM 0
Share

I tried this method before, and tried it again but it did not work. It's still saying that ibmliberty image is safe to deploy but the image that is created from the dockerfile above is blocked.

270007TC0B gravatar image

Answer by bctak (41) | Dec 10, 2015 at 09:44 AM

It was because the original ibmliberty image already contained vulnerabilities. It was scanned sometime ago and back then it was clean. After then, new vulnerabilities were discovered, but the image was not rescanned yet. So, for you to make it work, just add this line to the Dockerfile.

RUN apt-get update -y

Comment

People who like this

  0   Show 6   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270007TC0B gravatar image bctak (41)   Dec 10, 2015 at 09:54 AM 0
Share

I did more testing and adding that line doesn't seem to fix it. Give me a little more time.

3100012GTT gravatar image Kosker (3) bctak (41)   Dec 10, 2015 at 10:55 AM 0
Share

Thanks! I've already update and upgrade commands but nothing seems to work. I'll be waiting for your response.

270007TC0B gravatar image bctak (41)   Dec 10, 2015 at 11:53 AM 0
Share

Do you mean you tried now and didn't work? I just pushed this container image to the bluemix and it's working for me. See the screenshot.

alt text

untitled.png (63.6 kB)
3100012GTT gravatar image Kosker (3) bctak (41)   Dec 10, 2015 at 01:18 PM 0
Share

Now I tried again, deleting the last image, renaming the image name and it worked! Thanks a lot.

270007TC0B gravatar image bctak (41) bctak (41)   Dec 10, 2015 at 01:24 PM 0
Share

Glad to hear that it worked for you too.

3100012GTT gravatar image Kosker (3) bctak (41)   Dec 10, 2015 at 02:05 PM 0
Share

I think I have to provide --no-cache option as well when building the image.

Follow this question

83 people are following this question.

Answers

Answers & comments

Related questions

Bluemix container update code-edit 1 Answer

VULNERABILITY ADVISOR Status "Incomplete" 2 Answers

Product with liberty fails to start on bluemix 3 Answers

Bluemix ibmliberty container to pick up the WLP 8.5.5.7 1 Answer

ibmliberty container crashing locally 3 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges